|
|
@@ -3,24 +3,21 @@ on:
|
|
|
release:
|
|
|
types: [published]
|
|
|
workflow_dispatch:
|
|
|
-
|
|
|
+
|
|
|
+permissions:
|
|
|
+ contents: read
|
|
|
+ id-token: write
|
|
|
+
|
|
|
jobs:
|
|
|
- build:
|
|
|
+ publish:
|
|
|
runs-on: ubuntu-latest
|
|
|
- permissions:
|
|
|
- contents: read
|
|
|
- id-token: write
|
|
|
steps:
|
|
|
- uses: actions/checkout@v4
|
|
|
- # Setup .npmrc file to publish to npm
|
|
|
- uses: actions/setup-node@v4
|
|
|
with:
|
|
|
node-version: '22.x'
|
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
- # Install dependencies without modifying package-lock.json file
|
|
|
+ # Install dependencies without modifying package-lock.json file
|
|
|
- run: npm install --no-save
|
|
|
- run: npm run build
|
|
|
- run: lerna publish from-package --yes
|
|
|
- env:
|
|
|
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
- NPM_CONFIG_PROVENANCE: true
|