Skip to content

Commit ae03713

Browse files
GuillaumeLagrangeart049
authored andcommitted
ci: allow publishing alpha releases from tag
1 parent 6688f9a commit ae03713

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ jobs:
2929
run: pnpm moon run :build
3030

3131
- name: Publish the libraries
32-
run: pnpm publish -r --access=public --no-git-checks
32+
run: |
33+
if [[ "${{ github.ref }}" == *"-alpha"* ]]; then
34+
pnpm publish -r --access=public --no-git-checks --tag=alpha
35+
else
36+
pnpm publish -r --access=public --no-git-checks
37+
fi
3338
env:
3439
NPM_CONFIG_PROVENANCE: true
3540
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)