File tree Expand file tree Collapse file tree 5 files changed +93
-1222
lines changed Expand file tree Collapse file tree 5 files changed +93
-1222
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to npm
2+
3+ on :
4+ push :
5+ tags :
6+ - v*
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ defaults :
12+ run :
13+ working-directory : packages/nuxt-jsonld
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-node@v4
17+ with :
18+ node-version : ' 20'
19+ registry-url : ' https://registry.npmjs.org/'
20+ - run : yarn install --frozen-lockfile
21+ - run : npm publish
22+ env :
23+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ # This workflow uses release-please to automate the release process for packages/nuxt-jsonld.
2+ #
3+ # 1. When a commit is pushed to master, it creates a Release PR based on Conventional Commits.
4+ # 2. When the Release PR is merged, release-please automatically:
5+ # - Updates CHANGELOG.md and package.json
6+ # - Creates and pushes a new git tag (e.g. v1.4.1)
7+ # 3. The npm-publish workflow is triggered by the tag creation, publishing the package to npm.
8+
9+ name : Create Release PR
10+
11+ on :
12+ push :
13+ branches :
14+ - master
15+
16+ jobs :
17+ release :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+ - uses : googleapis/release-please-action@v4
22+ with :
23+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 2323 "scripts" : {
2424 "build" : " nuxi prepare && tsup" ,
2525 "test" : " vitest" ,
26- "test:ci" : " vitest run --coverage" ,
27- "release:prepare" : " shipjs prepare" ,
28- "release:trigger" : " shipjs trigger"
26+ "test:ci" : " vitest run --coverage"
2927 },
3028 "dependencies" : {
3129 "pathe" : " ^1.1.2" ,
3937 "happy-dom" : " ^15.11.7" ,
4038 "nuxt" : " ^3.11.2" ,
4139 "prettier" : " ^3.3.2" ,
42- "shipjs" : " 0.27.0" ,
4340 "tsup" : " ^8.1.0" ,
4441 "typescript" : " ^5.3.3" ,
4542 "vitest" : " ^2.1.6"
Original file line number Diff line number Diff line change 1+ {
2+ "packages" : {
3+ "packages/nuxt-jsonld" : {
4+ "release-type" : " node" ,
5+ "package-name" : " nuxt-jsonld"
6+ }
7+ }
8+ }
You can’t perform that action at this time.
0 commit comments