Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add npm provenance and upgrade version #224

Merged
merged 1 commit into from
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
Expand All @@ -16,21 +19,21 @@ jobs:
- run: pnpm i
- run: npm run test
- run: npm run build
- run: npm publish -w ./packages/types --tag next
- run: npm publish --provenance --access public -w ./packages/types --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish -w ./packages/util --tag next
- run: npm publish --provenance --access public -w ./packages/util --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish -w ./packages/renderer --tag next
- run: npm publish --provenance --access public -w ./packages/renderer --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish -w ./packages/board --tag next
- run: npm publish --provenance --access public -w ./packages/board --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish -w ./packages/core --tag next
- run: npm publish --provenance --access public -w ./packages/core --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish -w ./packages/idraw --tag next
- run: npm publish --provenance --access public -w ./packages/idraw --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 0 additions & 4 deletions lerna.json

This file was deleted.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": false,
"version": "0.4.0-alpha.2",
"version": "0.4.0-alpha.3",
"workspaces": [
"packages/*"
],
Expand All @@ -25,8 +25,6 @@
"precommit": "npm run lint",
"prepush": "npm run lint",
"clear:jest": "rm -rf ./packages/*/__tests__/__snapshots__",
"pu": "pnpm i && npm run build && lerna publish --force-publish",
"pu2": "lerna version && npm run build && lerna publish from-git --force-publish",
"upgrade:version": "vite-node ./scripts/upgrade-version.ts && pnpm i"
},
"devDependencies": {
Expand Down Expand Up @@ -59,7 +57,6 @@
"jest-environment-jsdom": "^29.7.0",
"jimp": "^0.22.10",
"koa-compose": "^4.1.0",
"lerna": "^7.3.0",
"less": "^4.2.0",
"pixelmatch": "^5.3.0",
"pngjs": "^7.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/board/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idraw/board",
"version": "0.4.0-alpha.2",
"version": "0.4.0-alpha.3",
"description": "",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
Expand All @@ -24,8 +24,8 @@
"@idraw/types": "^0.4.0-alpha.0"
},
"dependencies": {
"@idraw/util": "^0.4.0-alpha.2",
"@idraw/renderer": "^0.4.0-alpha.2"
"@idraw/util": "^0.4.0-alpha.3",
"@idraw/renderer": "^0.4.0-alpha.3"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idraw/core",
"version": "0.4.0-alpha.2",
"version": "0.4.0-alpha.3",
"description": "",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
Expand All @@ -24,9 +24,9 @@
"@idraw/types": "^0.4.0-alpha.0"
},
"dependencies": {
"@idraw/board": "^0.4.0-alpha.2",
"@idraw/renderer": "^0.4.0-alpha.2",
"@idraw/util": "^0.4.0-alpha.2"
"@idraw/board": "^0.4.0-alpha.3",
"@idraw/renderer": "^0.4.0-alpha.3",
"@idraw/util": "^0.4.0-alpha.3"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/idraw/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "idraw",
"version": "0.4.0-alpha.2",
"version": "0.4.0-alpha.3",
"description": "",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
Expand All @@ -24,8 +24,8 @@
"@idraw/types": "^0.4.0-alpha.0"
},
"dependencies": {
"@idraw/core": "^0.4.0-alpha.2",
"@idraw/util": "^0.4.0-alpha.2"
"@idraw/core": "^0.4.0-alpha.3",
"@idraw/util": "^0.4.0-alpha.3"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/lab/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@idraw/lab",
"version": "0.4.0-alpha.2",
"version": "0.4.0-alpha.3",
"dependencies": {
"@ant-design/icons": "^5.1.3",
"@idraw/core": "^0.4.0-alpha.2",
"@idraw/util": "^0.4.0-alpha.2",
"@idraw/core": "^0.4.0-alpha.3",
"@idraw/util": "^0.4.0-alpha.3",
"antd": "^5.5.0",
"classnames": "^2.3.2",
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idraw/renderer",
"version": "0.4.0-alpha.2",
"version": "0.4.0-alpha.3",
"description": "",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
Expand All @@ -24,7 +24,7 @@
"@idraw/types": "^0.4.0-alpha.0"
},
"dependencies": {
"@idraw/util": "^0.4.0-alpha.2"
"@idraw/util": "^0.4.0-alpha.3"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idraw/types",
"version": "0.4.0-alpha.2",
"version": "0.4.0-alpha.3",
"description": "",
"main": "src/index.ts",
"types": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idraw/util",
"version": "0.4.0-alpha.2",
"version": "0.4.0-alpha.3",
"description": "",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
Expand Down
Loading
Loading