Skip to content

Commit 3571115

Browse files
committed
Update release to github actions
1 parent 7736222 commit 3571115

File tree

2 files changed

+38
-24
lines changed

2 files changed

+38
-24
lines changed

.circleci/config.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -121,30 +121,7 @@ workflows:
121121
filters:
122122
branches:
123123
ignore: /^(dev|master|v2)/
124-
release_next:
125-
jobs:
126-
- build:
127-
filters:
128-
branches:
129-
only:
130-
- dev
131-
- v2
132-
- build_next:
133-
requires:
134-
- build
135-
filters:
136-
branches:
137-
only:
138-
- dev
139-
- v2
140-
- publish_next:
141-
requires:
142-
- build_next
143-
filters:
144-
branches:
145-
only:
146-
- dev
147-
- v2
124+
148125
release:
149126
jobs:
150127
- build:

.github/workflows/dev-release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: BETA Release
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 14
15+
registry-url: https://registry.npmjs.org/
16+
17+
- name: Install npm dependencies
18+
run: npm i
19+
20+
- name: Update the package version
21+
if: github.ref == 'refs/heads/dev'
22+
run: node scripts/update-package-version.js $GITHUB_RUN_ID
23+
24+
- name: Update version number for telemetry
25+
run: npm run versionUpdater
26+
27+
- name: Create/update the missing localization keys
28+
run: npm run localization
29+
30+
- name: Run build
31+
run: npm run build
32+
33+
- name: Publish beta release
34+
run: npm publish --tag next --access public
35+
if: github.ref == 'refs/heads/dev'
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}

0 commit comments

Comments
 (0)