Skip to content

Commit 96c0a5a

Browse files
committed
chore: update release actions
[ci skip]
1 parent fb7d5c6 commit 96c0a5a

2 files changed

Lines changed: 72 additions & 72 deletions

File tree

.github/workflows/release-rc.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
name: 'Release - Release Candidate'
22

3-
on:
4-
workflow_dispatch
5-
inputs:
6-
release_type:
7-
description: 'Release Type: premajor | preminor | prepatch | prerelease'
8-
required: true
9-
default: 'prerelease'
10-
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_type:
7+
description: 'Release Type: premajor | preminor | prepatch | prerelease'
8+
required: true
9+
default: 'prerelease'
10+
1111
jobs:
1212
build-and-release:
1313
if: github.actor == 'MarcusNotheis' || github.actor == 'vbersch' || github.actor == 'Lukas742'
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2.3.2
18-
with:
19-
token: ${{ secrets.ACCESS_TOKEN }}
20-
fetch-depth: 0
21-
22-
- name: Setup Node.js environment
23-
uses: actions/setup-node@v2.1.0
24-
with:
25-
node-version: 12.x
26-
27-
- name: Install, test and build
28-
run: |
29-
yarn install
30-
yarn test
31-
yarn build
32-
33-
- name: publish
34-
run: |
35-
npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
36-
37-
git config user.email ${{ secrets.BOT_GIT_EMAIL }}
38-
git config user.name ${{ secrets.BOT_GIT_USERNAME }}
39-
40-
${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish ${{ github.event.inputs.release_type }} \
41-
--conventional-prerelease \
42-
--create-release github \
43-
--dist-tag next \
44-
--pre-dist-tag next
45-
env:
46-
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
17+
- uses: actions/checkout@v2.3.2
18+
with:
19+
token: ${{ secrets.ACCESS_TOKEN }}
20+
fetch-depth: 0
21+
22+
- name: Setup Node.js environment
23+
uses: actions/setup-node@v2.1.0
24+
with:
25+
node-version: 12.x
26+
27+
- name: Install, test and build
28+
run: |
29+
yarn install
30+
yarn test
31+
yarn build
32+
33+
- name: publish
34+
run: |
35+
npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
36+
37+
git config user.email ${{ secrets.BOT_GIT_EMAIL }}
38+
git config user.name ${{ secrets.BOT_GIT_USERNAME }}
39+
40+
${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish ${{ github.event.inputs.release_type }} \
41+
--conventional-prerelease \
42+
--create-release github \
43+
--dist-tag next \
44+
--pre-dist-tag next
45+
env:
46+
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
47+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4848

.github/workflows/release.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
name: 'Release'
22

3-
on:
3+
on:
44
workflow_dispatch:
55
inputs:
66
release_type:
77
description: 'Release Type: patch | minor | major'
88
required: true
99
default: 'patch'
10-
10+
1111
jobs:
1212
build-and-release:
1313
if: github.actor == 'MarcusNotheis' || github.actor == 'vbersch' || github.actor == 'Lukas742'
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2.3.2
18-
with:
19-
token: ${{ secrets.ACCESS_TOKEN }}
20-
fetch-depth: 0
21-
22-
- name: Setup Node.js environment
23-
uses: actions/setup-node@v2.1.0
24-
with:
25-
node-version: 12.x
26-
27-
- name: Install, test and build
28-
run: |
29-
yarn install
30-
yarn test
31-
yarn build
32-
33-
- name: publish
34-
run: |
35-
npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
36-
37-
git config user.email ${{ secrets.BOT_GIT_EMAIL }}
38-
git config user.name ${{ secrets.BOT_GIT_USERNAME }}
39-
40-
${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish ${{ github.event.inputs.release_type }} \
41-
--conventional-graduate \
42-
--create-release github
43-
env:
44-
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
45-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
17+
- uses: actions/checkout@v2.3.2
18+
with:
19+
token: ${{ secrets.ACCESS_TOKEN }}
20+
fetch-depth: 0
21+
22+
- name: Setup Node.js environment
23+
uses: actions/setup-node@v2.1.0
24+
with:
25+
node-version: 12.x
26+
27+
- name: Install, test and build
28+
run: |
29+
yarn install
30+
yarn test
31+
yarn build
32+
33+
- name: publish
34+
run: |
35+
npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
36+
37+
git config user.email ${{ secrets.BOT_GIT_EMAIL }}
38+
git config user.name ${{ secrets.BOT_GIT_USERNAME }}
39+
40+
${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish ${{ github.event.inputs.release_type }} \
41+
--conventional-graduate \
42+
--create-release github
43+
env:
44+
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)