From 93bc5831da6227a32d31216cbf42f7f2164c9ecc Mon Sep 17 00:00:00 2001 From: Denis Carriere Date: Tue, 21 Nov 2023 13:12:21 -0500 Subject: [PATCH] add npm workflow --- .github/workflows/npm.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/npm.yml diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml new file mode 100644 index 0000000..92116f9 --- /dev/null +++ b/.github/workflows/npm.yml @@ -0,0 +1,19 @@ +name: NPM Registry +on: + release: + types: [ published ] + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '18.x' + cache: 'npm' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file