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
5 changes: 5 additions & 0 deletions .changeset/hip-eggs-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@commercetools/express-request-correlator": patch
---

Refactor to use trusted publishing.
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
# Get GitHub token via the CT Changesets App
Expand All @@ -26,6 +29,11 @@ jobs:
# https://github.community/t/action-does-not-trigger-another-on-push-tag-action/17148/8
token: ${{ steps.generate_github_token.outputs.token }}

- name: Verify npm version
run: |
npm --version
# Ensure latest npm is installed for trusted publishing (OIDC)

- name: Install pnpm
uses: pnpm/[email protected]
with:
Expand All @@ -40,15 +48,6 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
[email protected]
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Building packages
run: pnpm build

Expand Down