Skip to content

Commit 3af4bfc

Browse files
committed
fix: release management
1 parent 143cb03 commit 3af4bfc

File tree

2 files changed

+29
-33
lines changed

2 files changed

+29
-33
lines changed

.github/workflows/cd-npm.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/release-management.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,36 @@ jobs:
99
release-please:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: google-github-actions/release-please-action@v3
12+
- name: Run Release Please
13+
uses: google-github-actions/release-please-action@v3
1314
id: release
1415
with:
1516
release-type: node
1617
package-name: react-dsv-import
18+
19+
- name: Checkout repo
20+
uses: actions/checkout@v3
21+
with:
22+
fetch-depth: '0'
23+
if: ${{ steps.release.outputs.release_created }}
24+
25+
- name: Configure node for npmjs.org as registry
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: '16.x'
29+
registry-url: 'https://registry.npmjs.org'
30+
if: ${{ steps.release.outputs.release_created }}
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
if: ${{ steps.release.outputs.release_created }}
35+
36+
- name: Build
37+
run: npm run build
38+
if: ${{ steps.release.outputs.release_created }}
39+
40+
- name: Publish package on npmjs.org
41+
run: npm publish ./dist --access public
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)