Skip to content

Commit

Permalink
Supress npm-publish-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
timbl committed Oct 16, 2024
1 parent 3e08307 commit ea90aa8
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ env.GITHUB_REF_SLUG }}

npm-publish-latest:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/download-artifact@v4
with:
name: build
- uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Disable pre- and post-publish actions
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: latest
# npm-publish-latest:
# needs: build
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
# steps:
# - uses: actions/download-artifact@v4
# with:
# name: build
# - uses: actions/setup-node@v1
# with:
# node-version: 16.x
# - name: Disable pre- and post-publish actions
# run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
# - uses: JS-DevTools/npm-publish@v1
# with:
# token: ${{ secrets.NPM_TOKEN }}
# tag: latest

0 comments on commit ea90aa8

Please sign in to comment.