Skip to content

Commit

Permalink
refactor release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
merrycoder committed Dec 31, 2024
1 parent f0122d5 commit 67beefd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 44 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/actions/release-npm-package.yml

This file was deleted.

22 changes: 16 additions & 6 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@ on:
options: [patch, minor, major]
description: The semver of the release.
jobs:
release:
uses: qualipool/swissrets-json/tree/master/.github/workflows/release-npm-package.yml
build:
runs-on: ubuntu-latest
permissions:
contents: write
contents: read
packages: write
pull-requests: write
checks: write
secrets: inherit
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- 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: '@qualipool'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 67beefd

Please sign in to comment.