Skip to content

Commit 2b25362

Browse files
committed
ci: updats for ORG_NPM_TOKEN
1 parent dcbe7bf commit 2b25362

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.github/workflows/release-grapesjs-react-latest.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,25 @@ jobs:
77
publish:
88
if: "contains(github.event.head_commit.message, 'Release GrapesJS React latest:')"
99
runs-on: ubuntu-latest
10+
secrets: inherit
1011
steps:
1112
- name: Checkout
1213
uses: actions/checkout@v4
14+
1315
- name: Setup project
1416
uses: ./.github/actions/setup-project
17+
1518
- name: Build
1619
run: yarn build:core
20+
21+
- name: Setup NPM Auth
22+
run: |
23+
echo "//registry.yarnpkg.com/:_authToken=${NODE_AUTH_TOKEN}" >> ./packages/grapesjs-react/.npmrc
24+
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ./packages/grapesjs-react/.npmrc
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
27+
1728
- name: Publish to npm
29+
run: yarn publish:core:latest
1830
env:
1931
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
20-
run: |
21-
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ./packages/grapesjs-react/.npmrc
22-
yarn publish:core:latest

.github/workflows/release-grapesjs-react-rc.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,21 @@ jobs:
77
publish:
88
if: "contains(github.event.head_commit.message, 'Release GrapesJS React rc:')"
99
runs-on: ubuntu-latest
10+
secrets: inherit
1011
steps:
1112
- name: Checkout
1213
uses: actions/checkout@v4
1314
- name: Setup project
1415
uses: ./.github/actions/setup-project
1516
- name: Build
1617
run: yarn build:core
18+
- name: Setup NPM Auth
19+
run: |
20+
echo "//registry.yarnpkg.com/:_authToken=${NODE_AUTH_TOKEN}" >> ./packages/grapesjs-react/.npmrc
21+
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ./packages/grapesjs-react/.npmrc
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
1724
- name: Publish to npm
25+
run: yarn publish:core:rc
1826
env:
1927
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
20-
run: |
21-
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ./packages/grapesjs-react/.npmrc
22-
yarn publish:core:rc

0 commit comments

Comments
 (0)