From 7214264820302903bb9ec4296c3617b0ca10304c Mon Sep 17 00:00:00 2001 From: Rasso Hilber Date: Mon, 4 Dec 2023 19:56:44 +0100 Subject: [PATCH] Add npm-publish workflow --- .github/workflows/npm-publish.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..de5aee0 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,21 @@ +# This workflow publishes a package to NPM + +name: Publish package + +on: + release: + types: [published] + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: https://registry.npmjs.org + - run: npm ci + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}}