Skip to content

Commit 2b064ec

Browse files
authored
chore: prep prerelease (#315)
1 parent 0dd4824 commit 2b064ec

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ jobs:
4141
env:
4242
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4343
- name: Publish to npm
44-
run: pnpm publish --access public --no-git-checks
44+
run: |
45+
VERSION=$(node -p "require('./package.json').version")
46+
if [[ "$VERSION" == *-* ]]; then
47+
pnpm publish --access public --no-git-checks --tag next
48+
else
49+
pnpm publish --access public --no-git-checks
50+
fi
4551
env:
4652
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4753

release-please-config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
33
"release-type": "node",
44
"bootstrap-sha": "dd743117b3ac74700ba2291951cbc7bf151826cf",
5+
"prerelease": true,
56
"packages": {
67
".": {
78
"package-name": "eta",
8-
"extra-files": ["/jsr.json"]
9+
"extra-files": ["jsr.json"],
10+
"prerelease-type": "alpha"
911
}
1012
}
1113
}

0 commit comments

Comments
 (0)