From f836b642c58743c83fa3aaeb03221d92ceb3fcc3 Mon Sep 17 00:00:00 2001 From: PhemcodeJay Date: Sun, 27 Oct 2024 04:39:09 +0300 Subject: [PATCH] up --- .github/workflows/publish.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 00000000..c74ba06a --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,27 @@ +name: Publish to npm + +on: + push: + branches: + - main # or your default branch + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' # Specify your Node.js version + registry-url: 'https://registry.npmjs.org/' + + - name: Install dependencies + run: npm install + + - name: Publish package + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}