Skip to content

Commit

Permalink
fix: publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 17, 2024
1 parent 4d810a2 commit 7eff05a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ jobs:
uses: ocadotechnology/codeforlife-workspace/.github/workflows/test-javascript-code.yaml@main
secrets: inherit
with:
# Cannot be set with an env var. Value must match in the release job.
node-version: 18

release:
needs: [test]
concurrency: release
runs-on: ubuntu-latest
permissions:
id-token: write # to enable use of OIDC for npm provenance
# Release if:
# - the repo's owner is Ocado Tech.
# - a change is made to the default branch.
Expand All @@ -32,3 +33,4 @@ jobs:
uses: ocadotechnology/codeforlife-workspace/.github/actions/github/release@main
with:
cfl-bot-gh-token: ${{ secrets.CFL_BOT_GH_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"name": "codeforlife",
"description": "Common frontend code",
"private": true,
"private": false,
"version": "2.6.0",
"type": "module",
"scripts": {
Expand Down

0 comments on commit 7eff05a

Please sign in to comment.