ci: update publish-bs3 workflow for npm
This commit is contained in:
parent
89bd667510
commit
badc814918
14
.github/workflows/publish-bs3.yml
vendored
14
.github/workflows/publish-bs3.yml
vendored
|
@ -13,14 +13,18 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
depth: 0
|
|
||||||
|
|
||||||
- name: Setup Node.js 16.x
|
- name: Setup Node.js 16.x
|
||||||
uses: actions/setup-node@v3.0.0
|
uses: actions/setup-node@v3.0.0
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 16.x
|
||||||
|
|
||||||
|
- name: Set package.json version
|
||||||
|
uses: HarmvZ/set-package-json-version-action@v0.1.2
|
||||||
|
with:
|
||||||
|
version: ${{ env.PKG_VERSION_STRICT }}
|
||||||
|
path: ./bootstrap
|
||||||
|
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
working-directory: bootstrap
|
working-directory: bootstrap
|
||||||
run: |
|
run: |
|
||||||
|
@ -28,6 +32,12 @@ jobs:
|
||||||
npm ci
|
npm ci
|
||||||
grunt dist
|
grunt dist
|
||||||
|
|
||||||
|
- name: Publish to NPM
|
||||||
|
run: npm publish --access public
|
||||||
|
working-directory: bootstrap
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
|
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v3.0.0
|
uses: actions/upload-artifact@v3.0.0
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue