Skip to content

Commit ebd0c7f

Browse files
authored
Update publish-to-github.yml
1 parent 11f1f7e commit ebd0c7f

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.github/workflows/publish-to-github.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@ on:
1111
# Allows you to run this workflow manually from the Actions tab
1212
workflow_dispatch:
1313

14-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15-
permissions:
16-
contents: read
17-
pages: write
18-
id-token: write
19-
20-
# Allow one concurrent deployment
21-
concurrency:
22-
group: "pages"
23-
cancel-in-progress: true
24-
2514
jobs:
2615
build:
2716
runs-on: ubuntu-latest
@@ -30,6 +19,7 @@ jobs:
3019
- uses: actions/setup-node@v4
3120
with:
3221
node-version: 20
22+
registry-url: https://npm.pkg.github.com/
3323
- name: Build app
3424
working-directory: ./app
3525
run: npm ci
@@ -39,18 +29,9 @@ jobs:
3929
runs-on: ubuntu-latest
4030
permissions:
4131
contents: read
32+
pages: write
4233
packages: write
4334
steps:
44-
- name: Checkout
45-
uses: actions/checkout@v4
46-
- name: Set up node
47-
uses: actions/setup-node@v4
48-
with:
49-
node-version: 20
50-
registry-url: https://npm.pkg.github.com/
51-
- name: Build app
52-
working-directory: ./app
53-
run: npm ci
5435
- name: Set up pages
5536
uses: actions/configure-pages@v2
5637
- name: Build artifact

0 commit comments

Comments
 (0)