Skip to content

Commit

Permalink
fix publishing of artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
gtibrett committed Jun 20, 2024
1 parent ce3780e commit 42f538d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ jobs:
cp package.json dist/package.json
fi
- name: "Publish"
run: yarn publish ./dist
run: |
version=$(jq -r '.version' package.json)
timestamp=$(date +%s)
if [[ "$version" == *alpha* ]]
then
yarn publish --tag alpha ./dist
elif [[ "$version" == *beta* ]]
then
yarn publish --tag beta ./dist
else
yarn publish ./dist
fi
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PAT_TOKEN}}

0 comments on commit 42f538d

Please sign in to comment.