Skip to content

Finalize 0.6.0 release candidate after parser promotion #5

Finalize 0.6.0 release candidate after parser promotion

Finalize 0.6.0 release candidate after parser promotion #5

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: "10.18.0"
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
- name: Build package
run: pnpm build
- name: Create .npmrc
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
- name: Publish to NPM
run: pnpm --filter=stax-xml publish --access public --no-git-checks
- name: Generate changelog
run: pnpm dlx changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}