mirror of
https://github.com/sasjs/core.git
synced 2026-07-23 15:35:29 +00:00
Merge pull request #430 from sasjs/mp_retainedkey
chore: using oidc npm token
This commit is contained in:
@@ -11,10 +11,24 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
id-token: write # required for npm Trusted Publishing (OIDC)
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 'lts/*'
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
|
- name: Ensure npm supports Trusted Publishing
|
||||||
|
run: npm install -g npm@latest
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
@@ -58,7 +72,9 @@ jobs:
|
|||||||
uses: cycjimmy/semantic-release-action@v6
|
uses: cycjimmy/semantic-release-action@v6
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
# NPM_TOKEN no longer required: package is published via npm
|
||||||
|
# Trusted Publishing (OIDC). The id-token: write permission above
|
||||||
|
# allows npm CLI to authenticate to the registry automatically.
|
||||||
|
|
||||||
- name: SAS Packages Release
|
- name: SAS Packages Release
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user