Skip to content

Commit

Permalink
chore: separate publish to npm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Aug 13, 2024
1 parent 523e24c commit 344f96a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish-to-npm.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish to NPM

on:
workflow_dispatch:
pull_request:
branches:
- main
Expand Down Expand Up @@ -38,11 +39,15 @@ jobs:
SUI_VERSION: ${{ env.SUI_VERSION }}

- name: Publish to NPM
run: |
npm publish --no-git-checks --tag snapshot --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create GitHub Release
if: steps.check-changeset-files.outputs.has_changeset_files == 'false'
uses: changesets/action@v1
with:
publish: npm run release
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 344f96a

Please sign in to comment.