From 5acadb805b19f2aef85c0425ab49030b09fd5e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Tue, 26 Nov 2024 11:27:18 +0000 Subject: [PATCH] Add PR tags --- .github/workflows/ci-pr.yaml | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-pr.yaml b/.github/workflows/ci-pr.yaml index 61c41dc..ffc2f0c 100644 --- a/.github/workflows/ci-pr.yaml +++ b/.github/workflows/ci-pr.yaml @@ -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 }} diff --git a/package.json b/package.json index fab9cb5..d1e1ac5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@secretkeylabs/stacks-tools", - "version": "0.5.0", + "version": "0.6.0", "type": "module", "files": [ "dist"