Skip to content

Commit

Permalink
fix: add release tag env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts committed Dec 10, 2023
1 parent 3ed06c8 commit 379c546
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:

jobs:
version:
name: Version Packages
name: Version and Publish
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
TAG="$(${{ github.ref_name == 'main' }} && echo 'latest' || echo '${{ github.ref_name }}')"
./tools/publish.sh
RELEASE_TAG=$TAG ./tools/publish.sh
# publish:
# name: Publish Packages
Expand Down
18 changes: 9 additions & 9 deletions tools/publish.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
echo $TAG
echo "Publishing to $RELEASE_TAG"
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm publish node_modules/@analogjs/astro-angular --access public --tag beta --dry-run
npm publish node_modules/@analogjs/content --access public --tag beta --dry-run
npm publish node_modules/@analogjs/platform --access public --tag beta --dry-run
npm publish node_modules/@analogjs/router --access public --tag beta --dry-run
npm publish node_modules/@analogjs/trpc --access public --tag beta --dry-run
npm publish node_modules/@analogjs/vite-plugin-angular --access public --tag beta --dry-run
npm publish node_modules/@analogjs/vite-plugin-nitro --access public --tag beta --dry-run
npm publish dist/packages/create-analog --tag beta --dry-run
npm publish node_modules/@analogjs/astro-angular --access public --tag $RELEASE_TAG --dry-run
npm publish node_modules/@analogjs/content --access public --tag $RELEASE_TAG --dry-run
npm publish node_modules/@analogjs/platform --access public --tag $RELEASE_TAG --dry-run
npm publish node_modules/@analogjs/router --access public --tag $RELEASE_TAG --dry-run
npm publish node_modules/@analogjs/trpc --access public --tag $RELEASE_TAG --dry-run
npm publish node_modules/@analogjs/vite-plugin-angular --access public --tag $RELEASE_TAG --dry-run
npm publish node_modules/@analogjs/vite-plugin-nitro --access public --tag $RELEASE_TAG --dry-run
npm publish dist/packages/create-analog --tag $RELEASE_TAG --dry-run

0 comments on commit 379c546

Please sign in to comment.