Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
node-version: [22]

steps:
# 1. Mint a short-lived GitHub App token (bypass-capable)
# Mint a short-lived GitHub App token (bypass-capable)
- name: Generate token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
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
with:
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -43,7 +43,11 @@ jobs:
node-version: ${{ matrix.node-version }}
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
uses: actions/cache@v4
id: npm-cache
Expand Down Expand Up @@ -72,9 +76,7 @@ jobs:

- name: Publish to npm with trusted publisher
if: success()
env:
NPM_CONFIG_PROVENANCE: true
run: npm publish --access public --provenance
run: npm publish --access public

- 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 }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
"viya",
"sasjs"
],
"author": "Allan Bowe <support@macropeople.com>",
"author": "support@4gl.io",
"repository": {
"type": "git",
"url": "https://github.com/sasjs/adapter"
"url": "git+https://github.com/sasjs/adapter.git"
},
"license": "ISC",
"devDependencies": {
Expand Down
Loading