File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ pnpm build
5+ sed -i.bak -e ' 3,6d' .changeset/config.json
6+
7+ sed -i ' s/@opennextjs\/aws/open-next/' .changeset/config.json
8+ # cp packages/open-next/package.json packages/open-next/dist/package.json
9+ cp README.md packages/open-next/README.md
10+ # sed -i.bak -e '2,5d' packages/open-next/dist/package.json
11+ pnpm changeset publish --tag=v2
12+ cp .changeset/config.json.bak .changeset/config.json
Original file line number Diff line number Diff line change 1+ name : v2-release
2+
3+ on : workflow_dispatch
4+
5+ jobs :
6+ release :
7+ name : Pre-release
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout Repo
11+ # https://github.com/actions/checkout
12+ uses : actions/checkout@v4
13+
14+ # Setup .npmrc file to publish to npm
15+ - uses : actions/setup-node@v4
16+ with :
17+ registry-url : " https://registry.npmjs.org"
18+
19+ - uses : ./.github/actions/pnpm-setup
20+
21+ - name : Install dependencies
22+ run : pnpm install
23+
24+
25+ - name : Publish Pre-release to npm
26+ run : pnpm release-v2
27+ env :
28+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1414 "e2e:test" : " turbo run e2e:test" ,
1515 "version" : " ./.changeset/version" ,
1616 "release" : " ./.changeset/release" ,
17- "release-snapshot " : " ./.changeset/snapshot "
17+ "release-v2 " : " ./.changeset/release-v2 "
1818 },
1919 "devDependencies" : {
2020 "@biomejs/biome" : " 1.9.4" ,
You can’t perform that action at this time.
0 commit comments