Skip to content

Commit

Permalink
ci: update release to make to tag on npm and not push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Oct 14, 2021
1 parent c4a91e1 commit 82105d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
key: dist-${{ hashFiles('src/**/*.ts') }}-${{ hashFiles('tsconfig/*.json') }}-${{ hashFiles('.github/workflows/*.yml') }}-${{ hashFiles('package.json') }}
- name: Prepare distribution
run: node tools/publish-${{ matrix.prepare-script }}
- run: npm publish
- run: npm publish --tag previous
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -55,4 +55,3 @@ jobs:
git config --local user.email "panva.ip@gmail.com"
git config --local user.name "Filip Skokan"
git commit -m "chore: cleanup after publish"
- run: git push origin HEAD:main

0 comments on commit 82105d6

Please sign in to comment.