File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : run tests & bump version & publish to npm
1+ name : release-please & publish to npm
22
33on :
44 push :
55 branches :
66 - ' main'
77
8+ permissions :
9+ contents : write
10+ pull-requests : write
11+ issues : write
12+
813jobs :
9- release :
14+ release-please :
15+ runs-on : ubuntu-latest
16+ outputs :
17+ release_created : ${{ steps.release.outputs.release_created }}
18+ steps :
19+ - id : release
20+ uses : googleapis/release-please-action@v4
21+ with :
22+ config-file : release-please-config.json
23+ manifest-file : .release-please-manifest.json
24+
25+ publish :
26+ needs : release-please
27+ if : ${{ needs.release-please.outputs.release_created == 'true' }}
1028 runs-on : ubuntu-latest
11- if : " !contains(github.event.head_commit.message, 'chore:') && !contains(github.event.head_commit.message, 'docs:')"
29+ permissions :
30+ contents : read
31+ id-token : write
1232 steps :
1333 - uses : actions/checkout@v4
1434
2141 with :
2242 node-version : 18.16.1
2343 cache : ' pnpm'
44+ registry-url : ' https://registry.npmjs.org'
2445
2546 - run : pnpm install --frozen-lockfile
2647
3051 - name : run tests
3152 run : pnpm test
3253
33- - name : bump version and create tag
34- uses : ' phips28/gh-action-bump-version@master'
35- env :
36- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37- with :
38- minor-wording : ' feat'
39- major-wording : ' major'
40-
4154 - name : build package
4255 run : pnpm build
4356
4760 name : typesafe-i18n-browser
4861 path : dist/
4962
50- - name : publish to npm
51- uses : JS-DevTools/npm-publish@v1
52- with :
53- token : ${{ secrets.NPM_TOKEN }}
63+ - name : publish to npm (OIDC)
64+ run : npm publish --provenance
Original file line number Diff line number Diff line change 1+ {
2+ "." : " 5.26.2"
3+ }
Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" ,
3+ "packages" : {
4+ "." : {
5+ "release-type" : " node" ,
6+ "package-name" : " typesafe-i18n" ,
7+ "changelog-path" : " CHANGELOG.md" ,
8+ "include-component-in-tag" : false ,
9+ "include-v-in-tag" : false ,
10+ "changelog-sections" : [
11+ {
12+ "type" : " feat" ,
13+ "section" : " Features" ,
14+ "hidden" : false
15+ },
16+ {
17+ "type" : " fix" ,
18+ "section" : " Bug Fixes" ,
19+ "hidden" : false
20+ },
21+ {
22+ "type" : " perf" ,
23+ "section" : " Performance Improvements" ,
24+ "hidden" : false
25+ },
26+ {
27+ "type" : " refactor" ,
28+ "section" : " Refactoring" ,
29+ "hidden" : false
30+ },
31+ {
32+ "type" : " docs" ,
33+ "section" : " Documentation" ,
34+ "hidden" : false
35+ },
36+ {
37+ "type" : " ci" ,
38+ "section" : " Continuous Integration" ,
39+ "hidden" : true
40+ },
41+ {
42+ "type" : " build" ,
43+ "section" : " Build System" ,
44+ "hidden" : true
45+ },
46+ {
47+ "type" : " test" ,
48+ "section" : " Tests" ,
49+ "hidden" : true
50+ },
51+ {
52+ "type" : " chore" ,
53+ "section" : " Miscellaneous" ,
54+ "hidden" : true
55+ }
56+ ]
57+ }
58+ }
59+ }
You can’t perform that action at this time.
0 commit comments