Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release package

on:
push:
tags:
- "v*.*.*"

permissions:
id-token: write # Required for OIDC
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Use Node.js 22.x
uses: actions/setup-node@v6
with:
node-version: 22.x
cache: 'npm'

- run: npm version ${{ github.ref_name }} --no-git-tag-version

- run: npm install

- run: npm test

- run: npm pack

- run: npm publish

- name: Release
if: ${{ always() }}
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
./anchor-markdown-header-*.tgz
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "anchor-markdown-header",
"version": "0.7.0",
"version": "0.0.0-development",
"description": "Generates an anchor for a markdown header.",
"main": "anchor-markdown-header.js",
"scripts": {
Expand Down