Skip to content

feat: initial commit #3

feat: initial commit

feat: initial commit #3

Workflow file for this run

name: Release package
on:
push:
branches:
- main
- develop
workflow_dispatch:
permissions:
contents: read # for checkout
jobs:
install:
name: Install dependencies
uses: ./.github/workflows/install.yaml
commitlint:
name: Lint commit messages
uses: ./.github/workflows/commitlint.yaml
build:
needs: install
if: success('install')
name: Build TypeScript files
uses: ./.github/workflows/build.yaml
release:
needs:
- commitlint
- build
if: success('commitlint') && success('build')
name: Release package
runs-on: self-hosted
permissions:
contents: write # publish a GitHub release
id-token: write # use OIDC for npm provenance
issues: write # comment on released issues
packages: write # publish a NPM package
pull-requests: write # comment on released pull requests
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://npm.pkg.github.com'
scope: '@ivaoaero'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts --strict-peer-dependencies
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: prettier-config-build
path: dist
- name: Release prettier-config package
run: pnpm release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}