diff --git a/.changeset/five-buses-pay.md b/.changeset/five-buses-pay.md new file mode 100644 index 00000000..58c694d6 --- /dev/null +++ b/.changeset/five-buses-pay.md @@ -0,0 +1,5 @@ +--- +"@guardian/prosemirror-elements": patch +--- + +no-op release to test migration to NPM trusted publishing diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index cd1f924c..65cef74a 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -10,7 +10,9 @@ on: permissions: contents: write + issues: write pull-requests: write + id-token: write jobs: build: @@ -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 @@ -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 @@ -79,4 +82,3 @@ jobs: commit: "Bump package versions" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.nvmrc b/.nvmrc index dc5620ac..5f7d35fc 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1,2 @@ -22.15.0 \ No newline at end of file +24.14.1 + diff --git a/package.json b/package.json index 41a610c0..0ffa72a1 100644 --- a/package.json +++ b/package.json @@ -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": {