Skip to content

Commit c6b0212

Browse files
committed
chore: switch to trusted publishing (OIDC)
1 parent 549f99b commit c6b0212

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/publish-ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,9 @@ jobs:
4848
- name: Lint with ESLint
4949
run: yarn lint
5050

51-
# Publish the packages. Ignore lifecycle scripts and add verbose logging
52-
# Scripts are ignored because we build and lint before this step
53-
- name: Publish packages
51+
# Publish the built packages
52+
- name: Publish packages to NPM
5453
run: |
55-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
56-
git config user.email 'eclipse-emfcloud-bot@eclipse.org'
57-
git config user.name 'eclipse-emfcloud-bot'
58-
yarn lerna publish -y --ignore-scripts --loglevel=verbose
54+
yarn publish:ci
5955
env:
6056
NPM_CONFIG_PROVENANCE: 'true'
61-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62-
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"build": "lerna run build",
1313
"lint": "lerna run lint -- --max-warnings 0",
1414
"lint:fix": "yarn lint -fix",
15-
"start": "yarn --cwd example/browser-app start"
15+
"start": "yarn --cwd example/browser-app start",
16+
"publish:ci": "lerna publish -y --ignore-scripts --loglevel=verbose"
1617
},
1718
"devDependencies": {
1819
"@typescript-eslint/eslint-plugin": "^5.4.0",

0 commit comments

Comments
 (0)