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: generate provenance statements #2170

Merged
merged 4 commits into from Apr 22, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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