Skip to content

Commit 6461d19

Browse files
committed
solution: publish to NPM
1 parent cf6351b commit 6461d19

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
file: ./build/libs/*.jar
3838
file_glob: true
3939

40-
publish-gcp-artifacts:
40+
publish-maven:
41+
name: Publish to Maven
4142
runs-on: ubuntu-latest
4243
steps:
4344
- uses: actions/checkout@master
@@ -64,4 +65,28 @@ jobs:
6465
- name: Upload to GCP
6566
uses: eskatos/gradle-command-action@v1
6667
with:
67-
arguments: publish
68+
arguments: publish
69+
70+
publish-npm:
71+
name: Publish to NPM
72+
runs-on: ubuntu-latest
73+
steps:
74+
- name: Checkout the code
75+
uses: actions/checkout@v3
76+
with:
77+
ref: ${{ github.ref }}
78+
79+
- name: Configure NPM
80+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
81+
82+
- name: Install JS dependencies
83+
working-directory: ./doubleview-react
84+
run: pnpm install
85+
86+
- name: Build
87+
working-directory: ./doubleview-react
88+
run: pnpm run build
89+
90+
- name: Publish to NPM
91+
working-directory: ./doubleview-react
92+
run: pnpm publish --access=public

0 commit comments

Comments
 (0)