Skip to content

chore(deps-dev): bump @babel/traverse from 7.22.8 to 7.23.2 in /example #9

chore(deps-dev): bump @babel/traverse from 7.22.8 to 7.23.2 in /example

chore(deps-dev): bump @babel/traverse from 7.22.8 to 7.23.2 in /example #9

Workflow file for this run

name: Publish
on: [push]
jobs:
lint:
name: Lint project
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install Node.js dependencies
run: npm ci
- name: Revert changes into the package-lock.json file
run: git checkout -- package-lock.json
- name: Run lint action
uses: wearerequired/lint-action@v2
with:
auto_fix: true
eslint: true
eslint_extensions: js
test:
name: Testing TPG
runs-on: ubuntu-latest
needs: lint
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 6.x.x
- name: Install Node.js dependencies
run: npm ci
- name: Run test
run: npm run test:ci
publish:
name: Publish
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install Dependencies
run: npm install
- name: Publish to npm
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}