This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
Bump get-func-name from 2.0.0 to 2.0.2 #176
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: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
release: | |
types: [published] | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 10.x | |
- name: Installing dependencies | |
run: yarn install | |
- name: Testing package | |
run: yarn test | |
env: | |
CI: true | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 10.x | |
- name: Installing dependencies | |
run: yarn install | |
- name: Generate coverage | |
run: yarn coverage | |
env: | |
CI: true | |
- if: failure() | |
run: exit 1 | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 10.x | |
- name: Installing dependencies | |
run: yarn install | |
- name: Linting package | |
run: yarn lint | |
env: | |
CI: true | |
build: | |
needs: [test, coverage, lint] | |
if: success() | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [10.x, 11.x, 12.x, 13.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Installing dependencies | |
run: yarn install | |
- name: Building package | |
run: yarn build | |
env: | |
CI: true | |
docs: | |
needs: build | |
if: success() && github.event_name == 'release' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 13.x | |
- run: yarn install | |
- name: Generating docs | |
run: yarn docs:generate | |
- name: Deploying docs | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
ACCESS_TOKEN: ${{ secrets.GITHUB_ACCESS_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: docs | |
publish-npm: | |
needs: build | |
if: success() && github.event_name == 'release' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 13.x | |
registry-url: https://registry.npmjs.org/ | |
- run: yarn install | |
- run: yarn build | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
publish-github: | |
needs: build | |
if: success() && github.event_name == 'release' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 13.x | |
registry-url: https://npm.pkg.github.com/ | |
- run: yarn install | |
- run: yarn build | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |