Skip to content

chore: Bump @babel/traverse from 7.20.13 to 7.23.2 in /demo #58

chore: Bump @babel/traverse from 7.20.13 to 7.23.2 in /demo

chore: Bump @babel/traverse from 7.20.13 to 7.23.2 in /demo #58

name: Test & Publish
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:javascript"
# publish:
# name: Publish to NPM
# if: ${{ github.ref == 'refs/heads/main' }}
# runs-on: ubuntu-latest
# needs: [test, analyze]
# steps:
# - uses: actions/checkout@v3
# - name: Use Node.js 18.x
# uses: actions/setup-node@v3
# with:
# node-version: 18.x
# cache: 'npm'
# - run: npm ci
# - run: npm run semantic-release