Skip to content

Commit d041cd3

Browse files
authored
feat(arcgis-rest-request): bump for trusted publishing
* feat(arcgis-rest-request): bump for trusted publishing * chore: workflow updates * chore: new release workflow * chore: switch to lastest NPM for release workflow
1 parent e506cff commit d041cd3

File tree

4 files changed

+28
-106
lines changed

4 files changed

+28
-106
lines changed

.github/workflows/manual-release.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
name: Build, Test, Release
22

3-
# On pushes to master (i.e. merging a PR)
4-
# run all tests, on win, macos, linux, on node 12 & 14
3+
# On pushes to main (i.e. merging a PR)
4+
# run all tests, on Ubuntu Node 24 and release if tests pass
55
on:
66
push:
77
branches:
88
- main
9-
- beta
109
- alpha
11-
# Dont run if it's just markdown or doc files
10+
- beta
1211
paths-ignore:
13-
# UNCOMMENT THIS AFTER
14-
# - "**.md"
1512
- "docs/**"
1613
- "demos/**"
1714
- "scripts/**"
1815

16+
permissions:
17+
contents: read
18+
1919
jobs:
2020
# First, build and test on multiple os's
2121
# and multuple versions of node
@@ -24,12 +24,10 @@ jobs:
2424

2525
runs-on: ${{ matrix.os }}
2626

27-
# PRs will run tests on node 14,16 on ubuntu, macos and windows
28-
# so for the release, we're just running node 16@ubuntu
2927
strategy:
3028
matrix:
3129
os: [ubuntu-latest]
32-
node: [18]
30+
node: [24]
3331

3432
steps:
3533
- uses: actions/checkout@v4
@@ -54,7 +52,11 @@ jobs:
5452
name: Release
5553
needs: [build_and_test]
5654
runs-on: ubuntu-latest
57-
55+
permissions:
56+
contents: write # to be able to publish a GitHub release
57+
issues: write # to be able to comment on released issues
58+
pull-requests: write # to be able to comment on released pull requests
59+
id-token: write # to enable use of OIDC for trusted publishing and npm provenance
5860
steps:
5961
- uses: actions/checkout@v4
6062
with:
@@ -64,14 +66,10 @@ jobs:
6466

6567
- uses: actions/setup-node@v4
6668
with:
67-
node-version: 18
69+
node-version: 24
6870

69-
- name: Configure npm
70-
run: |
71-
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
72-
cat .npmrc
73-
env:
74-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
71+
- name: Update NPM
72+
run: npm install -g npm@latest
7573

7674
- name: Install
7775
run: npm ci --legacy-peer-deps
@@ -81,7 +79,5 @@ jobs:
8179

8280
- name: Release
8381
env:
84-
# GH_TOKEN is maintained in the repository secrets. See RELEASE.md for more information.
85-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
86-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
82+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8783
run: npm run release

RELEASE.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44

55
As of v4, the ArcGIS REST JS packages are released automatically via Semantic Release.
66

7-
**Note:** Any new packages added are published at v1.0.0 instead of 4.0.0.
8-
9-
### Deploy Token
7+
As of November 2025 ArcGIS REST JS uses trusted publishing for all packages configured through the `release.yml` file.
108

11-
The current deploy token is stored as a [repository secret](https://github.com/Esri/arcgis-rest-js/settings/secrets/actions) named `gh_token`, which is a GitHub personal access token. The user who generated that token must have the `Allow specified actors to bypass required pull requests` setting (see repo settings > Branches > `main`) set so that Semantic Release can commit on their behalf.
9+
**Note:** Any new packages added are published at v1.0.0 instead of 4.0.0.
1210

1311
## v3
1412

package-lock.json

Lines changed: 10 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)