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/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
# https://docs.npmjs.com/trusted-publishers#github-actions-configuration
permissions:
contents: write
issues: write
pull-requests: write
packages: write
id-token: write # Required for npm OIDC
contents: write # Required for semantic-release to create releases/tags
issues: write # Required for semantic-release to comment on issues
pull-requests: write # Required for semantic-release to comment on PRs

steps:
- name: Checkout
Expand All @@ -29,6 +30,7 @@ jobs:
with:
node-version: 'lts/*'
cache: 'npm'
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: npm ci
Expand All @@ -40,7 +42,7 @@ jobs:
run: npm run build

- name: Semantic Release
run: npm run semantic-release
# Use npx to ensure npm OIDC token is passed correctly
run: npx semantic-release --no-ci
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
}
]
},
"publishConfig": {
"access": "public",
"provenance": true
},
"license": "MIT",
"dependencies": {
"@ideal-postcodes/core-interface": "~3.2.1",
Expand Down