Skip to content

Commit

Permalink
ci: generate provenance statements (#2170)
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed Apr 22, 2023
1 parent 1c52a91 commit b6cb911
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nightly-release.yml
Expand Up @@ -7,6 +7,9 @@ on:
- cron: '0 0 * * *'
workflow_dispatch:

permissions:
id-token: write

jobs:
nightly-release:
name: Publish npm@nightly release
Expand Down Expand Up @@ -50,3 +53,4 @@ jobs:
env:
NIGHTLY: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -8,6 +8,9 @@ on:
# Pending until other workflows done
concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
id-token: write

jobs:
release:
name: Try publishing npm@latest release
Expand Down Expand Up @@ -45,3 +48,4 @@ jobs:
run: ./scripts/publish.sh
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
1 change: 1 addition & 0 deletions packages/blocks/package.json
Expand Up @@ -4,6 +4,7 @@
"description": "Default BlockSuite editable blocks.",
"main": "src/index.ts",
"type": "module",
"repository": "toeverything/blocksuite",
"scripts": {
"build": "tsc",
"test:unit": "vitest --run",
Expand Down
1 change: 1 addition & 0 deletions packages/connector/package.json
Expand Up @@ -4,6 +4,7 @@
"description": "Library for creating orthogonal connectors with pathfinding support",
"main": "src/index.ts",
"type": "module",
"repository": "toeverything/blocksuite",
"scripts": {
"build": "tsc",
"test:unit": "vitest --run",
Expand Down
1 change: 1 addition & 0 deletions packages/docs/package.json
Expand Up @@ -5,6 +5,7 @@
"private": true,
"keywords": [],
"author": "toeverything",
"repository": "toeverything/blocksuite",
"license": "MPL-2.0",
"devDependencies": {
"vitepress": "1.0.0-alpha.60"
Expand Down
1 change: 1 addition & 0 deletions packages/editor/package.json
Expand Up @@ -4,6 +4,7 @@
"description": "Default BlockSuite-based editor built for AFFiNE.",
"main": "src/index.ts",
"type": "module",
"repository": "toeverything/blocksuite",
"scripts": {
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
1 change: 1 addition & 0 deletions packages/global/package.json
Expand Up @@ -3,6 +3,7 @@
"version": "0.5.0-alpha.3",
"types": "./index.d.ts",
"type": "module",
"repository": "toeverything/blocksuite",
"scripts": {
"test:unit": "vitest --run",
"test:unit:coverage": "vitest run --coverage",
Expand Down
1 change: 1 addition & 0 deletions packages/phasor/package.json
Expand Up @@ -4,6 +4,7 @@
"description": "Hybrid canvas renderer.",
"main": "src/index.ts",
"type": "module",
"repository": "toeverything/blocksuite",
"scripts": {
"build": "tsc",
"test:unit": "vitest --run",
Expand Down
1 change: 1 addition & 0 deletions packages/playground/package.json
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "0.5.0-alpha.3",
"type": "module",
"repository": "toeverything/blocksuite",
"scripts": {
"dev": "vite --host",
"dev:hmr": "WC_HMR=1 vite",
Expand Down
1 change: 1 addition & 0 deletions packages/store/package.json
Expand Up @@ -4,6 +4,7 @@
"description": "BlockSuite data store built for general purpose state management.",
"main": "src/index.ts",
"type": "module",
"repository": "toeverything/blocksuite",
"scripts": {
"serve": "PORT=4444 node node_modules/y-webrtc/bin/server.js",
"build": "tsc",
Expand Down
1 change: 1 addition & 0 deletions packages/virgo/package.json
Expand Up @@ -4,6 +4,7 @@
"description": "A micro editor.",
"main": "src/index.ts",
"type": "module",
"repository": "toeverything/blocksuite",
"scripts": {
"build": "tsc",
"test:unit": "vitest --run",
Expand Down

2 comments on commit b6cb911

@vercel
Copy link

@vercel vercel bot commented on b6cb911 Apr 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on b6cb911 Apr 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blocksuite – ./packages/playground

blocksuite-five.vercel.app
blocksuite-toeverything.vercel.app
blocksuite-git-master-toeverything.vercel.app

Please sign in to comment.