Skip to content

Bump braces from 3.0.2 to 3.0.3 #36

Bump braces from 3.0.2 to 3.0.3

Bump braces from 3.0.2 to 3.0.3 #36

name: Test, Build and Publish
on:
pull_request:
branches: ['*']
push:
branches:
- 'master'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test
build:
needs: test
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run build:cjs
- run: npm run build:es2015
- run: npm run build:types
publish-npm:
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build:cjs
- run: npm run build:es2015
- run: npm run build:types
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}