Skip to content

fix: suppress oclif TypeScript warning by setting NODE_ENV=production… #31

fix: suppress oclif TypeScript warning by setting NODE_ENV=production…

fix: suppress oclif TypeScript warning by setting NODE_ENV=production… #31

Workflow file for this run

name: Release and Publish
on:
push:
branches:
- main
jobs:
test-and-lint:
uses: ./.github/workflows/test.yml
release:
needs: test-and-lint
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Install semantic-release plugins
run: |
npm install -D \
@semantic-release/commit-analyzer \
@semantic-release/release-notes-generator \
@semantic-release/npm \
@semantic-release/github \
@semantic-release/git \
conventional-changelog-conventionalcommits
- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release