Skip to content

Commit

Permalink
Use publish package action (#37)
Browse files Browse the repository at this point in the history
# Use publish package action

## ♻️ Current situation & Problem
Uses GitHub action from from
StanfordBDHG/.github#95

## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
arkadiuszbachorski authored Jan 20, 2025
1 parent 9e40078 commit 16bfcb5
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,8 @@ jobs:
secrets: inherit
publishpackage:
name: Publish Package
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
scope: '@stanfordspezi'
- name: Clean Install
run: npm ci
- name: Set version
run: npm version --no-git-tag-version ${{ github.event.release.tag_name }}
- name: Build
run: npm run build
- name: Publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: StanfordBDHG/.github/.github/workflows/npm-publish-package.yml@39b0d06
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
packageVersion: ${{ github.event.release.tag_name }}

0 comments on commit 16bfcb5

Please sign in to comment.