Skip to content

Commit

Permalink
build: Split actions into two
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellindau committed Nov 21, 2024
1 parent 1f9962e commit 3206ff5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pack and Publish to NPM
name: Create Github release
on:
workflow_dispatch:
jobs:
Expand Down Expand Up @@ -30,7 +30,3 @@ jobs:
body: ${{ steps.changelog.outputs.clean_changelog }}
draft: false
prerelease: false
- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to NPM
on:
workflow_dispatch:
jobs:
create_package:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4

- name: Install node modules
run: npm ci

- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 3206ff5

Please sign in to comment.