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
5 changes: 5 additions & 0 deletions .changeset/five-buses-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@guardian/prosemirror-elements": patch
---

no-op release to test migration to NPM trusted publishing
12 changes: 7 additions & 5 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ on:

permissions:
contents: write
issues: write
pull-requests: write
id-token: write

jobs:
build:
Expand Down Expand Up @@ -50,10 +52,6 @@ jobs:
release:
runs-on: ubuntu-latest
needs: [build, integration-tests]
permissions:
contents: write
issues: write
pull-requests: write
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'
steps:
- uses: actions/checkout@v3
Expand All @@ -64,6 +62,11 @@ jobs:
node-version-file: .nvmrc
cache: "yarn"

# See https://docs.npmjs.com/trusted-publishers
# Find the latest version with `npm info npm@latest version`
- name: Install suitable NPM version for trusted publishing
run: npm install -g npm@11.12.0

- name: Install dependencies
run: yarn install --frozen-lockfile

Expand All @@ -79,4 +82,3 @@ jobs:
commit: "Bump package versions"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
22.15.0
24.14.1

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "9.10.0",
"type": "module",
"main": "dist/cjs/index.js",
"repository": "github:guardian/prosemirror-elements",
"repository": {
"url": "git+https://github.com/guardian/prosemirror-elements.git"
},
"module": "dist/esm/index.js",
"types": "dist/declaration/index.d.ts",
"publishConfig": {
Expand Down
Loading