diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 13eca3b..ae41e5f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,8 @@ -name: Publish +name: Publish (pre) on: release: - types: [created] + types: [published] jobs: publish-npm: @@ -13,7 +13,7 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ - - run: npm publish --access public + - run: npm publish --tag pre --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} @@ -25,6 +25,6 @@ jobs: with: node-version: 12 registry-url: https://npm.pkg.github.com/ - - run: npm publish --access public + - run: npm publish --tag pre --access public env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file