Skip to content

v1.9.0

v1.9.0 #81

Workflow file for this run

# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: publish-release
on:
release:
types:
- published
- unpublished
jobs:
set-commit-hash:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- id: commit-hash
uses: ottofeller/github-actions/latest-release-commit-hash@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
lint:
needs: set-commit-hash
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache node_modules
id: cache-deps
uses: actions/cache@v4
with:
key: ${{ hashFiles('./package-lock.json') }}
path: ./node_modules
- name: Install dependencies
if: ${{ steps.cache-deps.outputs.cache-hit != 'true' }}
run: npm ci
- name: Execute the command
run: npm run lint
typecheck:
needs: set-commit-hash
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache node_modules
id: cache-deps
uses: actions/cache@v4
with:
key: ${{ hashFiles('./package-lock.json') }}
path: ./node_modules
- name: Install dependencies
if: ${{ steps.cache-deps.outputs.cache-hit != 'true' }}
run: npm ci
- name: Execute the command
run: npm run typecheck
test:
needs: set-commit-hash
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache node_modules
id: cache-deps
uses: actions/cache@v4
with:
key: ${{ hashFiles('./package-lock.json') }}
path: ./node_modules
- name: Install dependencies
if: ${{ steps.cache-deps.outputs.cache-hit != 'true' }}
run: npm ci
- name: Execute the command
run: npm run test
publish:
needs:
- set-commit-hash
- lint
- typecheck
- test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: ottofeller/github-actions/publish-npm@main
with:
ref: ${{ needs.set-commit-hash.outputs.commit_hash }}
registry-url: https://registry.npmjs.org/
npm-token: ${{ secrets.NPM_TOKEN }}
include-build-step: true