From 3717c81466bad0419b5f6630bc731114a2a07c56 Mon Sep 17 00:00:00 2001 From: AnyBananaGAME Date: Thu, 11 Jul 2024 17:20:27 +0300 Subject: [PATCH] Workflow --- .github/workflows/NPM.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..4d6d7c4 --- /dev/null +++ b/.github/workflows/NPM.yml @@ -0,0 +1,24 @@ +name: Publish Package to npmjs + +on: + push: + branches: master + +jobs: + build: + permissions: + id-token: write + contents: read + 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 run build + - run: npm publish --access=public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + \ No newline at end of file