chore(deps-dev): bump braces from 3.0.2 to 3.0.3 #157
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: Lint, Test, and (Maybe) Publish | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Check out files | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "npm" | |
cache-dependency-path: package-lock.json | |
- name: Update to latest NPM version | |
run: npm i -g npm | |
- name: Install package dependencies | |
run: npm ci | |
- name: Lint code | |
run: npm run lint --if-present | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Check out files | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "npm" | |
cache-dependency-path: package-lock.json | |
- name: Update to latest NPM version | |
run: npm i -g npm | |
- name: Install package dependencies | |
run: npm ci | |
- name: Test code | |
run: npm run test --if-present | |
publish: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'push' && github.repository_owner == 'longshotlabs' && github.ref == 'refs/heads/main' }} | |
needs: [lint, test] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Check out files | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "npm" | |
cache-dependency-path: package-lock.json | |
- name: Update to latest NPM version | |
run: npm i -g npm | |
- name: Install package dependencies | |
run: npm ci | |
- name: Semantic Release | |
run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |