Feat/get (#602) #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD | |
on: | |
push: | |
tags: | |
- "[v]?[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
npm_publish: | |
name: Publish Package to npmjs | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout db3.js | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/[email protected] | |
with: | |
node-version: "16.x" | |
- name: build sdk | |
run: | | |
TAG=${GITHUB_REF/refs\/tags\//} | |
VERSION=${TAG#*v} | |
echo ${VERSION} | |
cd sdk && yarn version --new-version ${VERSION} && yarn && make && yarn build | |
- uses: JS-DevTools/npm-publish@v2 | |
with: | |
token: ${{ secrets.NMP_TOKEN }} | |
package: ./sdk/package.json |