File tree Expand file tree Collapse file tree 3 files changed +135
-155
lines changed Expand file tree Collapse file tree 3 files changed +135
-155
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions : {}
9+ jobs :
10+ release :
11+ # prevents this action from running on forks
12+ if : github.repository == 'sveltejs/devalue'
13+ permissions :
14+ contents : write # to create release (changesets/action)
15+ id-token : write # OpenID Connect token needed for provenance
16+ pull-requests : write # to create pull request (changesets/action)
17+ name : Release
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout Repo
21+ uses : actions/checkout@v4
22+ with :
23+ # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
24+ fetch-depth : 0
25+ - uses : pnpm/action-setup@v4
26+ - name : Setup Node.js
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : 18.x
30+ cache : pnpm
31+
32+ - name : Install
33+ run : pnpm install --frozen-lockfile
34+
35+ - name : Create Release Pull Request or Publish to npm
36+ id : changesets
37+ uses : changesets/action@v1
38+ with :
39+ publish : pnpm changeset:publish
40+ version : pnpm changeset:version
41+ env :
42+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43+ NPM_CONFIG_PROVENANCE : true
44+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1818 ],
1919 "types" : " ./types/index.d.ts" ,
2020 "devDependencies" : {
21- "dts-buddy" : " ^0.0.4 " ,
22- "publint" : " ^0.1.7 " ,
23- "typescript" : " ^3.1.3 " ,
21+ "dts-buddy" : " ^0.6.2 " ,
22+ "publint" : " ^0.3.12 " ,
23+ "typescript" : " ^5.9.2 " ,
2424 "uvu" : " ^0.5.6"
2525 },
2626 "scripts" : {
27+ "changeset:version" : " changeset version" ,
28+ "changeset:publish" : " changeset publish" ,
2729 "build" : " dts-buddy" ,
2830 "test" : " uvu test" ,
2931 "prepublishOnly" : " npm test && npm run build && publint"
3032 },
3133 "license" : " MIT" ,
3234 "type" : " module" ,
33- "packageManager" : " pnpm@8.5.1 "
35+ "packageManager" : " pnpm@8.15.9 "
3436}
You can’t perform that action at this time.
0 commit comments