fix(parse): detect sdk build flavor (#183) #78
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: | |
branches: [ main ] | |
jobs: | |
sdk: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.1.7 | |
- name: Setup Node | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: 20 | |
- name: Prepare for SDK release | |
run: node .github/sdk.js | |
- name: Publish sdk tag to npm | |
uses: JS-DevTools/npm-publish@v3.1.1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
tag: sdk | |
normal: | |
needs: [ sdk ] | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.1.7 | |
- name: Publish latest tag to npm | |
uses: JS-DevTools/npm-publish@v3.1.1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
tag: latest |