Skip to content
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
19 changes: 8 additions & 11 deletions .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- canary

permissions:
contents: write # For creating releases/tags
pull-requests: write # For creating version PRs
id-token: write # For npm OIDC authentication

jobs:
release_packages:
name: Release Packages
Expand All @@ -16,22 +21,15 @@ jobs:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 18.x
- name: Setup Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: npm ci

- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
Expand All @@ -41,7 +39,6 @@ jobs:
version: npm run version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Save Plugin version
run: |
json=${{ toJSON(steps.changesets.outputs.publishedPackages) }}
Expand Down
4 changes: 4 additions & 0 deletions packages/block-editor-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@
"engines": {
"node": ">=18",
"npm": ">=8"
},
"publishConfig": {
"access": "public",
"provenance": true
}
}
4 changes: 4 additions & 0 deletions packages/blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,9 @@
"engines": {
"node": ">=18",
"npm": ">=8"
},
"publishConfig": {
"access": "public",
"provenance": true
}
}
4 changes: 4 additions & 0 deletions packages/faustwp-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,9 @@
"engines": {
"node": ">=18",
"npm": ">=8"
},
"publishConfig": {
"access": "public",
"provenance": true
}
}
4 changes: 4 additions & 0 deletions packages/faustwp-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,9 @@
"engines": {
"node": ">=18",
"npm": ">=8"
},
"publishConfig": {
"access": "public",
"provenance": true
}
}