Skip to content

Commit bead867

Browse files
committed
chore: change nightly to use 0.0.0 versions
1 parent ab25911 commit bead867

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,31 @@ jobs:
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
34+
nightly:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout Repository
38+
uses: actions/checkout@v4
39+
40+
- name: Setup
41+
uses: ./.github/actions/setup
42+
43+
- name: Initialize Git user
44+
shell: bash
45+
run: |
46+
git config user.name "github-actions"
47+
git config user.email "mwlawlor@gmail.com"
48+
49+
- name: Setup NPM registry
50+
run: |
51+
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
52+
env:
53+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
54+
55+
- name: Run nightly release
56+
run: |
57+
yarn release:nightly --ci --dry-run
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"prepare": "bob build",
117117
"prepublishOnly": "bob build",
118118
"release": "release-it --config ./.config/release-it.config.ts",
119-
"release:nightly": "release-it --config ./.config/release-it.nightly.config.ts 3.0.0-nightly.\"$(git rev-parse --short HEAD)\" --npm.tag=nightly && git restore :/",
119+
"release:nightly": "release-it --config ./.config/release-it.nightly.config.ts 0.0.0-nightly.\"$(git rev-parse --short HEAD)\" --npm.tag=nightly && git restore :/",
120120
"start": "yarn example start",
121121
"start:build": "yarn build && yarn example build",
122122
"start:debug": "yarn build && yarn example debug",

0 commit comments

Comments
 (0)