From 1fcfcf4da7043539fb87cce0eac152f892894a10 Mon Sep 17 00:00:00 2001 From: kaanyagci Date: Mon, 29 May 2023 02:32:50 +0200 Subject: [PATCH] publish on npm workflow created --- .github/workflows/publish-on-npm.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/publish-on-npm.yml diff --git a/.github/workflows/publish-on-npm.yml b/.github/workflows/publish-on-npm.yml new file mode 100644 index 0000000..83a7cb9 --- /dev/null +++ b/.github/workflows/publish-on-npm.yml @@ -0,0 +1,32 @@ +name: Publish to npm + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: '16.x' + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + # - name: Test + # run: npm test + + - name: Publish to npm + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}