Skip to content

Commit badc814

Browse files
authored
ci: update publish-bs3 workflow for npm
1 parent 89bd667 commit badc814

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/publish-bs3.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v2
16-
with:
17-
depth: 0
1816

1917
- name: Setup Node.js 16.x
2018
uses: actions/setup-node@v3.0.0
2119
with:
2220
node-version: 16.x
21+
22+
- name: Set package.json version
23+
uses: HarmvZ/set-package-json-version-action@v0.1.2
24+
with:
25+
version: ${{ env.PKG_VERSION_STRICT }}
26+
path: ./bootstrap
2327

2428
- name: Build Release
2529
working-directory: bootstrap
@@ -28,6 +32,12 @@ jobs:
2832
npm ci
2933
grunt dist
3034
35+
- name: Publish to NPM
36+
run: npm publish --access public
37+
working-directory: bootstrap
38+
env:
39+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
40+
3141
- name: Upload a Build Artifact
3242
uses: actions/upload-artifact@v3.0.0
3343
with:

0 commit comments

Comments
 (0)