From eecce716144d4e068476fecdc34d05d3a895e393 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Mon, 8 Apr 2024 05:37:24 +0300 Subject: [PATCH] feat: add github actions --- .github/workflows/publishing.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/publishing.yml diff --git a/.github/workflows/publishing.yml b/.github/workflows/publishing.yml new file mode 100644 index 0000000..50482cc --- /dev/null +++ b/.github/workflows/publishing.yml @@ -0,0 +1,20 @@ +name: Publish Package +run-name: Publishing Package to npmjs registry +env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} +on: + release: + types: [published] +jobs: + publishing: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + cache: 'yarn' + registry-url: 'https://registry.npmjs.org' + - run: yarn + - run: yarn npm publish