Skip to content

Commit a0679e8

Browse files
committed
fix: npm publish in github release.yml action
1 parent 80382e7 commit a0679e8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: release
22
on:
33
release:
44
types: [published]
5+
permissions:
6+
id-token: write # Required for OIDC NPM publishing
7+
contents: read
58
jobs:
69
release:
710
runs-on: ubuntu-latest
@@ -37,11 +40,11 @@ jobs:
3740
- run: make install
3841
- run: chmod +x .github/bin/wait-for-it.sh
3942
- run: .github/bin/wait-for-it.sh db:5432
43+
# TODO: Fix linting errors and restore this line
4044
# - run: make lint
4145
- run: make prepare-release
4246
env:
4347
GITHUB_REF: v1.0.1
4448
- run: make release
4549
env:
46-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4750
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
2-
"name": "groundwork-django",
2+
"name": "@commonknowledgecoop/groundwork-django",
33
"version": "0.1.0",
4-
"repository": "https://github.com/commonknowledge/groundwork.git",
4+
"repository": {
5+
"type": "git",
6+
"url": "git+https://github.com/commonknowledge/groundwork.git"
7+
},
58
"description": "An integrated Django and Javascript framework for people who build tools for organisers.",
69
"author": "Common Knowledge <developers@commonknowledge.coop>",
710
"license": "GPL-3.0-only",

0 commit comments

Comments
 (0)