-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (34 loc) · 994 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release
on:
push:
tags: ['*']
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
cache: 'sbt'
- uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Set Release Env
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo ${{ secrets.PGP_SECRET }} | base64 --decode | gpg --batch --import
- run: npm ci
- run: npx nx run-many --target=build
- name: Release
run: npm run lerna:publish
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
NPM_CONFIG_PROVENANCE: true