Skip to content

Merge pull request #153 from PlanetHoster/renovate/lint-staged-15.x #16

Merge pull request #153 from PlanetHoster/renovate/lint-staged-15.x

Merge pull request #153 from PlanetHoster/renovate/lint-staged-15.x #16

Workflow file for this run

name: Release
permissions:
contents: write
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set node
uses: actions/setup-node@v4
with:
node-version: 18.x
registry-url: "https://registry.npmjs.org"
cache: npm
- name: Setup
run: npm i -g @antfu/ni
- name: Install
run: nci
- name: Run tests
run: npm run test
- name: Prepare package
run: npm run build
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}