From bd4b5a2d68b21fcf62b1fa0db436b550c3f2bf7a Mon Sep 17 00:00:00 2001 From: Torrin Leonard <82110564+torrinworx@users.noreply.github.com> Date: Sun, 20 Oct 2024 10:37:05 -0400 Subject: [PATCH] Update npm-publish.yml --- .github/workflows/npm-publish.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f022afc..c291dbb 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,9 +1,9 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages name: Node.js Package - on: release: types: [created] - jobs: build: runs-on: ubuntu-latest @@ -14,7 +14,6 @@ jobs: node-version: 20 - run: npm ci - run: npm test - publish-npm: needs: build runs-on: ubuntu-latest @@ -24,16 +23,7 @@ jobs: with: node-version: 20 registry-url: https://registry.npmjs.org/ - - run: npm version patch - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} - - name: Push changes - uses: ad-m/github-push-action@v0.6.0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: main - force: true