Skip to content

Commit 996f143

Browse files
authored
Give NPM id-token write capability (#1330)
1 parent aa307e1 commit 996f143

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read # Required to checkout the code
9+
id-token: write # Required to sign the NPM publishing statements
10+
711
jobs:
812
publish-reactpy:
9-
if: startsWith(github.event.release.name, 'reactpy ')
13+
if: startsWith(github.event.release.name, 'reactpy ') || startsWith(github.event.release.tag_name, 'reactpy-')
1014
uses: ./.github/workflows/.hatch-run.yml
1115
with:
1216
job-name: "Publish to PyPI"
@@ -16,14 +20,14 @@ jobs:
1620
pypi-password: ${{ secrets.PYPI_PASSWORD }}
1721

1822
publish-reactpy-client:
19-
if: startsWith(github.event.release.name, '@reactpy/client ')
23+
if: startsWith(github.event.release.name, '@reactpy/client ') || startsWith(github.event.release.tag_name, '@reactpy/client-')
2024
uses: ./.github/workflows/.hatch-run.yml
2125
with:
2226
job-name: "Publish to NPM"
2327
run-cmd: "hatch run javascript:publish_client"
2428

2529
publish-event-to-object:
26-
if: startsWith(github.event.release.name, 'event-to-object ')
30+
if: startsWith(github.event.release.name, 'event-to-object ') || startsWith(github.event.release.tag_name, 'event-to-object-')
2731
uses: ./.github/workflows/.hatch-run.yml
2832
with:
2933
job-name: "Publish to NPM"

docs/source/about/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ Unreleased
6565

6666
**Deprecated**
6767

68-
-:pull:`1307` - ``reactpy.web.export`` is deprecated. Use ``reactpy.reactjs.component_from_*`` instead.
6968
-:pull:`1307` - ``reactpy.web.module_from_file`` is deprecated. Use ``reactpy.reactjs.component_from_file`` instead.
7069
-:pull:`1307` - ``reactpy.web.module_from_url`` is deprecated. Use ``reactpy.reactjs.component_from_url`` instead.
7170
-:pull:`1307` - ``reactpy.web.module_from_string`` is deprecated. Use ``reactpy.reactjs.component_from_string`` instead.
71+
-:pull:`1307` - ``reactpy.web.export`` is deprecated. Use ``reactpy.reactjs.component_from_*`` instead.
7272
-:pull:`1314` - ``reactpy.web.*`` is deprecated. Use ``reactpy.reactjs.*`` instead.
7373

7474
**Removed**

0 commit comments

Comments
 (0)