Skip to content

Commit e8041bc

Browse files
chore(ci): fix GH & NPM tokens (#72)
1 parent 3d18067 commit e8041bc

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

.github/workflows/_init.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Initialize build
22

33
on:
44
workflow_call:
5-
65
outputs:
76
NODE_VERSION:
87
value: ${{ jobs.init.outputs.NODE_VERSION }}

.github/workflows/_release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ on:
1010
type: string
1111
required: true
1212

13-
secrets:
14-
SEMANTIC_RELEASE_NPM_TOKEN:
15-
required: true
16-
SEMANTIC_RELEASE_GH_TOKEN:
17-
required: true
18-
1913
jobs:
2014
test:
2115
name: Release package
@@ -42,5 +36,5 @@ jobs:
4236
- name: Run release
4337
run: npm run release
4438
env:
45-
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
46-
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
39+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_PUBLISHER_TOKEN }}

.github/workflows/dev.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Development
22

33
on:
4-
push:
5-
branches: [ '*', '*/*', '**', '!master', '!main' ]
64
pull_request:
7-
branches: [ master, main ]
5+
branches: [master, main]
86

97
jobs:
108
init:
@@ -14,7 +12,7 @@ jobs:
1412
test:
1513
name: Test
1614
uses: ./.github/workflows/_test.yml
17-
needs: [ init ]
15+
needs: [init]
1816
with:
1917
NODE_VERSION: ${{ needs.init.outputs.NODE_VERSION }}
2018
NODE_CACHE_KEY: ${{ needs.init.outputs.NODE_CACHE_KEY }}

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22

33
on:
44
push:
5-
branches: [ master, main ]
5+
branches: [master, main]
66

77
jobs:
88
init:
@@ -12,18 +12,16 @@ jobs:
1212
test:
1313
name: Test
1414
uses: ./.github/workflows/_test.yml
15-
needs: [ init ]
15+
needs: [init]
1616
with:
1717
NODE_VERSION: ${{ needs.init.outputs.NODE_VERSION }}
1818
NODE_CACHE_KEY: ${{ needs.init.outputs.NODE_CACHE_KEY }}
1919

2020
release:
2121
name: Release
2222
uses: ./.github/workflows/_release.yml
23-
needs: [ init, test ]
23+
needs: [init, test]
2424
with:
2525
NODE_VERSION: ${{ needs.init.outputs.NODE_VERSION }}
2626
NODE_CACHE_KEY: ${{ needs.init.outputs.NODE_CACHE_KEY }}
27-
secrets:
28-
SEMANTIC_RELEASE_NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
29-
SEMANTIC_RELEASE_GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
27+
secrets: inherit

0 commit comments

Comments
 (0)