Skip to content

πŸ‘·β€β™€οΈ Add GITHUB_TOKEN for publish step #2

πŸ‘·β€β™€οΈ Add GITHUB_TOKEN for publish step

πŸ‘·β€β™€οΈ Add GITHUB_TOKEN for publish step #2

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
- name: Install
run: npm install
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm run test:coverage
env:
COVERAGE_REPORTER: text
- name: Release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: ./release.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}