File tree 3 files changed +29
-24
lines changed
3 files changed +29
-24
lines changed Original file line number Diff line number Diff line change 6
6
workflow_dispatch :
7
7
8
8
jobs :
9
+ tests :
10
+ uses : ./.github/workflows/tests.yml
11
+
9
12
build :
10
13
if : ' !github.event.release.prerelease'
11
14
runs-on : ubuntu-latest
15
+ needs : [tests]
12
16
steps :
13
- - uses : actions/checkout@v3
14
- - uses : actions/setup-node@v3
15
- with :
16
- node-version : ' lts/*'
17
- registry-url : ' https://registry.npmjs.org'
18
- - run : npm install
19
- - run : lerna run build
20
- - run : lerna publish from-git -y
21
- env :
22
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
17
+ - uses : actions/checkout@v4
18
+ - uses : actions/setup-node@v4
19
+ with :
20
+ registry-url : https://registry.npmjs.org
21
+ scope : " @mathix420"
22
+ env :
23
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
24
+ - run : npm i
25
+ - run : npm publish --access public
26
+ env :
27
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,16 +2,18 @@ name: Release Draft
2
2
3
3
on :
4
4
push :
5
- tags : [ "v*" ]
5
+ branches :
6
+ - master
6
7
7
- jobs :
8
- tagged-release :
9
- name : " Release Draft"
10
- runs-on : " ubuntu-latest"
8
+ permissions :
9
+ contents : write
10
+ pull-requests : write
11
11
12
+ jobs :
13
+ release-please :
14
+ runs-on : ubuntu-latest
12
15
steps :
13
- - uses : " marvinpinto/action-automatic-releases@latest "
16
+ - uses : googleapis/release-please-action@v4
14
17
with :
15
- draft : true
16
- prerelease : false
17
- repo_token : " ${{ secrets.GITHUB_TOKEN }}"
18
+ token : ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
19
+ release-type : node
Original file line number Diff line number Diff line change 5
5
branches : [ master ]
6
6
pull_request :
7
7
branches : [ master ]
8
-
8
+ workflow_call :
9
9
workflow_dispatch :
10
10
11
11
jobs :
12
12
test :
13
13
runs-on : ubuntu-latest
14
14
15
15
steps :
16
- - uses : actions/checkout@v3
17
- - uses : actions/setup-node@v3
18
- with :
19
- node-version : ' lts/*'
16
+ - uses : actions/checkout@v4
17
+ - uses : actions/setup-node@v4
20
18
21
19
- run : npm i
22
20
- run : lerna run test:ci
You can’t perform that action at this time.
0 commit comments