ci: remove yarn #32
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: Verify good stuff is pushed | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
ava: | |
name: π¬ Ava Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v3 | |
- name: π Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- uses: pnpm/action-setup@v2 | |
name: π₯ Download deps | |
with: | |
version: 8 | |
run_install: false | |
- name: π§ͺ Test | |
run: pnpm test | |
env: | |
AWS_ACCESS_KEY_ID: 'test' | |
AWS_SECRET_ACCESS_KEY: 'test' | |
build: | |
name: ποΈββοΈ Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v3 | |
- name: π Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: π₯ Download deps | |
run: pnpm | |
- name: π Build | |
run: pnpm build | |
prettier: | |
name: πͺ Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v3 | |
- name: π Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: π₯ Download deps | |
run: pnpm | |
- name: π Prettier | |
run: pnpm prettier | |
bump: | |
name: β¬οΈ Bump Version | |
runs-on: ubuntu-latest | |
needs: [prettier, build, ava] | |
steps: | |
- name: π Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v3 | |
- name: πΈ Version Bump | |
id: version-bump | |
uses: 'phips28/gh-action-bump-version@master' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag-prefix: 'v' | |
- name: βΉοΈ New Version | |
env: | |
NEW_TAG: ${{ steps.version-bump.outputs.newTag }} | |
run: echo "Version $NEW_TAG" |