Skip to content

Commit

Permalink
Add PR tags
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Nov 26, 2024
1 parent 4b862dc commit 5acadb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,18 @@ jobs:
run: |
echo "@secretkeylabs:registry=https://registry.npmjs.org/" > .npmrc
echo "//registry.npmjs.org/:_authToken=$AUTH_TOKEN" >> .npmrc
bunx npm@latest publish --access=public
bunx npm@latest publish --access=public --tag pr-$PR_NUMBER
env:
AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }}
PR_NUMBER: ${{ github.event.number }}

- name: Publish to GitHub package registry
# https://github.com/oven-sh/bun/issues/1976
run: |
echo "@secretkeylabs:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=$AUTH_TOKEN" >> .npmrc
bunx npm@latest publish --access=public
bunx npm@latest publish --access=public --tag pr-$PR_NUMBER
env:
# https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages
AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@secretkeylabs/stacks-tools",
"version": "0.5.0",
"version": "0.6.0",
"type": "module",
"files": [
"dist"
Expand Down

0 comments on commit 5acadb8

Please sign in to comment.