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: 11 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,28 @@ on:
types:
- published

permissions:
id-token: write # Required for OIDC / npmjs publish

jobs:
publish:
name: Publish to npm
if: ${{ github.repository_owner == 'accordproject' }}
runs-on: ubuntu-latest
environment: production

steps:
- name: git checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: '20'
registry-url: 'https://registry.npmjs.org'

# Ensure npm 11.5.1 or later for trusted publishing
- run: npm install -g npm@latest

- run: npm ci
- run: npm run build --if-present
Expand Down
12 changes: 12 additions & 0 deletions .syncpackrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://unpkg.com/syncpack@14/schema.json",
"semverGroups": [
{
"label": "Enforce pinned versions (no ^ or ~)",
"dependencies": ["**"],
"dependencyTypes": ["prod", "dev", "peer"],
"packages": ["**"],
"range": ""
}
]
}
Loading
Loading