simplify locust implementation #18
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: Release Library | |
on: | |
push: | |
branches: | |
- main | |
- next | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Fetch Git tags | |
run: git fetch --unshallow --tags | |
- name: Use Node 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: npm-deps-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm-deps-${{ hashFiles('package-lock.json') }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Create release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_REPO_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx auto shipit |