Skip to content

Commit

Permalink
chore: release with provenance (#31)
Browse files Browse the repository at this point in the history
* chore: release with provenance

* chore: pre

* chore: still pre

* chore: node 18

* chore: pre
  • Loading branch information
hi-ogawa committed Apr 20, 2023
1 parent 2cfa6cb commit d2c04a5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
version: 7
- uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
- run: pnpm i --frozen-lockfile
- run: pnpm lint-check
- run: pnpm tsc
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
version: 7
- uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
- run: pnpm i --frozen-lockfile
- run: npx typedoc
- uses: actions/configure-pages@v3
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ on:
jobs:
release:
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
# create .npmrc with NODE_AUTH_TOKEN https://github.com/actions/setup-node/blob/3dbcda8bc2eb5ec6aa3fbde01feaae3236952db8/src/authutil.ts#L48
registry-url: "https://registry.npmjs.org"
cache: pnpm
Expand All @@ -28,3 +31,4 @@ jobs:
- run: pnpm -C packages/${{ inputs.package }} release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: "true"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"vitest": "^0.27.2"
},
"volta": {
"node": "16.17.0"
"node": "18.16.0"
}
}
2 changes: 1 addition & 1 deletion packages/utils-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hiogawa/utils-react",
"version": "1.2.1-pre.1",
"version": "1.2.1-pre.2",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hiogawa/utils",
"version": "1.4.2-pre.5",
"version": "1.4.2-pre.7",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down

0 comments on commit d2c04a5

Please sign in to comment.