1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-07-23 14:45:29 +00:00

chore: ensuring latest npm

This commit is contained in:
Allan Bowe
2026-06-18 19:44:03 +00:00
parent 5f1d2fa1c9
commit e20555ac82
2 changed files with 10 additions and 8 deletions
+8 -6
View File
@@ -22,7 +22,7 @@ jobs:
node-version: [22] node-version: [22]
steps: steps:
# 1. Mint a short-lived GitHub App token (bypass-capable) # Mint a short-lived GitHub App token (bypass-capable)
- name: Generate token - name: Generate token
id: app-token id: app-token
uses: actions/create-github-app-token@v1 uses: actions/create-github-app-token@v1
@@ -30,7 +30,7 @@ jobs:
app-id: ${{ secrets.APP_ID }} app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }} private-key: ${{ secrets.APP_PRIVATE_KEY }}
# 2. Checkout using the app token so the release commit can be pushed # Checkout using the app token so the release commit can be pushed
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
token: ${{ steps.app-token.outputs.token }} token: ${{ steps.app-token.outputs.token }}
@@ -43,7 +43,11 @@ jobs:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org registry-url: https://registry.npmjs.org
# 3. Restore npm cache manually # Node 22 ships npm 10.x — OIDC trusted publishing needs npm >= 11.5.1
- name: Update npm
run: npm install -g npm@latest
# Restore npm cache manually
- name: Restore npm cache - name: Restore npm cache
uses: actions/cache@v4 uses: actions/cache@v4
id: npm-cache id: npm-cache
@@ -72,9 +76,7 @@ jobs:
- name: Publish to npm with trusted publisher - name: Publish to npm with trusted publisher
if: success() if: success()
env: run: npm publish --access public
NPM_CONFIG_PROVENANCE: true
run: npm publish --access public --provenance
- name: Send Matrix message - name: Send Matrix message
run: curl -XPOST -d "{\"msgtype\":\"m.text\", \"body\":\"New version of @sasjs/adapter has been released! \n Please deploy and run 'dctests' with new adapter to make sure everything is still in place.\"}" https://matrix.4gl.io/_matrix/client/r0/rooms/!jRebyiGmHZlpfDwYXN:4gl.io/send/m.room.message?access_token=${{ secrets.MATRIX_TOKEN }} run: curl -XPOST -d "{\"msgtype\":\"m.text\", \"body\":\"New version of @sasjs/adapter has been released! \n Please deploy and run 'dctests' with new adapter to make sure everything is still in place.\"}" https://matrix.4gl.io/_matrix/client/r0/rooms/!jRebyiGmHZlpfDwYXN:4gl.io/send/m.room.message?access_token=${{ secrets.MATRIX_TOKEN }}
+2 -2
View File
@@ -48,10 +48,10 @@
"viya", "viya",
"sasjs" "sasjs"
], ],
"author": "Allan Bowe <support@macropeople.com>", "author": "support@4gl.io",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/sasjs/adapter" "url": "git+https://github.com/sasjs/adapter.git"
}, },
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {