From 7bc8fa6ce31d635f796bb2a7cbb0710baf431935 Mon Sep 17 00:00:00 2001 From: Kirill Zhumarin Date: Wed, 10 Jul 2024 01:36:40 +0000 Subject: [PATCH] CI --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..83623cd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: Publish Package to npmjs +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}