Skip to content

chore(release): release (#42) #149

chore(release): release (#42)

chore(release): release (#42) #149

Workflow file for this run

name: CI Workflow
on: push
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn run test
build:
env:
NODE_OPTIONS: --max-old-space-size=4096
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["lts/*"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn lint:ci
- run: yarn lint
- run: yarn build
release:
runs-on: ubuntu-latest
needs: [build]
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
if: github.ref == 'refs/heads/main'
strategy:
matrix:
node-version: ["lts/*"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: yarn install
- run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn run release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}