From 6d701405c06ad60abab5bb255f0d185954144837 Mon Sep 17 00:00:00 2001 From: Thomas Chetwin Date: Wed, 18 Sep 2024 16:39:11 +0100 Subject: [PATCH] ci: Add publish GitHub Action Signed-off-by: Thomas Chetwin --- .github/workflows/publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..f1cfafd --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: Node.js Package +on: + release: + types: + - created +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: "https://registry.npmjs.org" + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}