1- name : changesets
1+ # NOTE: This filename must be called release.yml. If changed, update the Trusted Publisher settings in npm
2+
3+ name : Release
24
35on :
46 push :
911
1012concurrency : ${{ github.workflow }}-${{ github.ref }}
1113
14+ permissions :
15+ id-token : write # Required for OIDC
16+
1217jobs :
1318 release :
1419 name : Release
3338 uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
3439 with :
3540 node-version : lts/*
41+ registry-url : https://registry.npmjs.org
3642 package-manager-cache : false
3743
44+ - name : Update npm # Need at least 11.5.1 for OIDC publishing
45+ run : npm install -g npm@latest
46+
3847 - name : Install Dependencies
3948 run : yarn
4049
4352 git config --global user.name 'Neo4j Team GraphQL'
4453 git config --global user.email 'team-graphql@neotechnology.com'
4554
46- - name : Creating .npmrc
47- run : |
48- cat << EOF > "$HOME/.npmrc"
49- @neo4j:registry https://registry.npmjs.org
50- //registry.npmjs.org/:_authToken=$NPM_TOKEN
51- EOF
52- env :
53- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
54-
5555 - name : Create release PR or release
5656 id : changesets
5757 uses : changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
@@ -63,16 +63,13 @@ jobs:
6363 setupGitUser : false
6464 env :
6565 GITHUB_TOKEN : ${{ secrets.NEO4J_TEAM_GRAPHQL_PERSONAL_ACCESS_TOKEN }}
66- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
6766 YARN_ENABLE_IMMUTABLE_INSTALLS : false
6867 BRANCH : ${{ github.ref_name }}
6968
7069 slack-notify :
7170 needs :
7271 - release
73-
7472 if : ${{ needs.release.outputs.published == 'true' }}
75-
7673 runs-on : ubuntu-latest
7774 strategy :
7875 matrix :
0 commit comments