Skip to content

Commit ed2dad5

Browse files
authored
bugfix
1 parent cf086c2 commit ed2dad5

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
workflow_dispatch: # Added manual trigger option
1010

1111
permissions:
12-
contents: read
12+
contents: write
1313
packages: write
1414

1515
jobs:
@@ -36,7 +36,7 @@ jobs:
3636
needs: build
3737
runs-on: ubuntu-latest
3838
permissions:
39-
contents: read
39+
contents: write
4040
packages: write
4141
steps:
4242
- uses: actions/checkout@v4
@@ -51,7 +51,10 @@ jobs:
5151
name: build-output
5252
path: packages/
5353
- run: npm ci
54-
- run: cp README.md packages/stencil-library
54+
- name: Temporarily sync README
55+
run: |
56+
cp README.md packages/stencil-library
57+
git commit -am "Synced README"
5558
- name: Configure GitHub Packages scope
5659
run: echo "@$(echo '${{ github.repository }}' | cut -d '/' -f 1):registry=https://npm.pkg.github.com" >> .npmrc
5760
- run: npx lerna publish from-package --yes
@@ -62,7 +65,7 @@ jobs:
6265
needs: build
6366
runs-on: ubuntu-latest
6467
permissions:
65-
contents: read
68+
contents: write
6669
steps:
6770
- uses: actions/checkout@v4
6871
- uses: actions/setup-node@v4
@@ -76,7 +79,10 @@ jobs:
7679
name: build-output
7780
path: packages/
7881
- run: npm ci
79-
- run: cp README.md packages/stencil-library
82+
- name: Temporarily sync README
83+
run: |
84+
cp README.md packages/stencil-library
85+
git commit -am "Synced README"
8086
- run: npx lerna publish from-package --yes
8187
env:
8288
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)