Skip to content

Commit

Permalink
task: update workflows to also publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
cngJo committed Oct 2, 2022
1 parent 40a0fc9 commit bfde54f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
types: [created]

jobs:
build:
github:
name: "Publish to Github Packages"
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -20,3 +21,15 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

npm:
name: "Publish to NPM"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jop-software/astro-matomo",
"version": "0.1.1",
"version": "0.1.2",
"description": "Matomo integration for Astro",
"type": "module",
"keywords": [
Expand Down

0 comments on commit bfde54f

Please sign in to comment.