Skip to content

Commit

Permalink
Adjust actions
Browse files Browse the repository at this point in the history
  • Loading branch information
traut committed Jul 14, 2024
1 parent b136fe7 commit 554e0e9
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Publish Package to npmjs
name: Release and publish the package
on:
release:
types: [published]
push:
tags:
- "v*"

permissions:
contents: write

jobs:
build:
release-npmjs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -17,3 +22,17 @@ jobs:
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
release-github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@traut'
- run: yarn
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 554e0e9

Please sign in to comment.