Skip to content

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
torrinworx authored Oct 20, 2024
1 parent 9c8ba7f commit bd4b5a2
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -14,7 +14,6 @@ jobs:
node-version: 20
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
Expand All @@ -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/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
force: true

0 comments on commit bd4b5a2

Please sign in to comment.