From 337ba054c72d56c91c4c2de208138636a30aacd8 Mon Sep 17 00:00:00 2001 From: Av32000 Date: Mon, 15 May 2023 22:50:49 +0200 Subject: [PATCH] Add Auto Publish Action --- .github/workflows/AutoPublish.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/AutoPublish.yml diff --git a/.github/workflows/AutoPublish.yml b/.github/workflows/AutoPublish.yml new file mode 100644 index 0000000..df29dbc --- /dev/null +++ b/.github/workflows/AutoPublish.yml @@ -0,0 +1,21 @@ +name: Publish Package to npmjs +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + - run: npm install -g npm + - run: npm ci + - run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}