diff --git a/.github/workflows/publish-stable-npm.yml b/.github/workflows/publish-stable-npm.yml new file mode 100644 index 000000000..99c9a59fe --- /dev/null +++ b/.github/workflows/publish-stable-npm.yml @@ -0,0 +1,24 @@ +name: publish-stable:npm + +on: + push: + branches-ignore: + - '**' + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + +jobs: + npm-publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 22 + registry-url: https://registry.npmjs.org/ + - run: yarn install --ignore-scripts + - run: yarn ci:build + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + IS_CI: true