From 344f96a6d7868df4983e3b56a1a77322d15bb505 Mon Sep 17 00:00:00 2001 From: npty Date: Tue, 13 Aug 2024 19:57:05 +0700 Subject: [PATCH] chore: separate publish to npm workflow --- .github/workflows/publish-to-npm.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-to-npm.yaml b/.github/workflows/publish-to-npm.yaml index 25812162..a7607b88 100644 --- a/.github/workflows/publish-to-npm.yaml +++ b/.github/workflows/publish-to-npm.yaml @@ -1,6 +1,7 @@ name: Publish to NPM on: + workflow_dispatch: pull_request: branches: - main @@ -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 }}