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
12 changes: 7 additions & 5 deletions .github/workflows/publish-to-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [ master ]

permissions:
contents: write
id-token: write # Trusted publishing enabled

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -17,15 +21,15 @@ jobs:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ steps.generate-token.outputs.token }}
- name: Identify
run: |
git config --global user.name "openactive[bot]"
git config --global user.email 207210293+openactive[bot]@users.noreply.github.com
- name: Use Node.js 18.17.1
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 18.17.1
registry-url: https://registry.npmjs.org/
Expand All @@ -36,9 +40,7 @@ jobs:
- name: Increment Version
run: npm version patch
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: npm publish --provenance
- name: Push version update
run: git push

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openactive/data-model-validator",
"version": "3.0.2",
"version": "3.0.3",
"description": "A library to allow a developer to validate a JSON document against the OpenActive Modelling Opportunity Specification",
"homepage": "https://openactive.io",
"author": "OpenActive Community <hello@openactive.io>",
Expand Down
Loading