Skip to content

Commit

Permalink
chore: disable automatic releases
Browse files Browse the repository at this point in the history
  • Loading branch information
cusspvz committed Oct 23, 2023
1 parent 3e0b8cc commit c7070f3
Showing 1 changed file with 43 additions and 50 deletions.
93 changes: 43 additions & 50 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,43 @@
name: Publish to npm on new tag

on:
# push:
# tags:
# - '*'
push:
branches:
- "main"
pull_request:
branches:
- main

jobs:
publish:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Extract version
id: extract_version
uses: Saionaro/[email protected]

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
check-latest: true
cache: yarn
scope: '@abmf'

- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
shell: bash

- name: Print version
run: echo ${{ steps.extract_version.outputs.version }}

- name: Build
run: yarn build

- name: Publish to npm
run: |
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> .npmrc
yarn exec lerna publish --force-publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# name: Publish to npm on new tag

# on:
# push:
# tags:
# - '*'
# jobs:
# publish:
# runs-on: self-hosted
# steps:
# - name: Checkout code
# uses: actions/checkout@v4

# - name: Extract version
# id: extract_version
# uses: Saionaro/[email protected]

# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 18
# check-latest: true
# cache: yarn
# scope: '@abmf'

# - name: Install dependencies
# if: steps.yarn-cache.outputs.cache-hit != 'true'
# run: |
# yarn install --frozen-lockfile
# shell: bash

# - name: Print version
# run: echo ${{ steps.extract_version.outputs.version }}

# - name: Build
# run: yarn build

# - name: Publish to npm
# run: |
# echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> .npmrc
# yarn exec lerna publish --force-publish --access public
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit c7070f3

Please sign in to comment.