Skip to content

3.11.0

3.11.0 #10

Workflow file for this run

name: Deploy
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: node:18
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
run_install: false
- name: Set-up Node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Publish
run: |
pnpm install --ignore-scripts --prefer-offline
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
with:
configurationJson: |
{
"categories": [
{
"title": "## 🚀 Features",
"labels": ["feature-request", "enhancement"]
},
{
"title": "## 🛠 Fixes",
"labels": ["fix", "bug"]
},
{
"title": "## 🎲 Demo",
"labels": ["demo", "docs"]
},
{
"title": "## 📝 Documentation",
"labels": ["documentation"]
},
{
"title": "## 🧩 Dependencies",
"labels": ["dependencies"]
},
{
"title": "## ⚙️ Configuration",
"labels": ["configuration", "technical"]
},
{
"title": "## 📦 Other",
"labels": []
}
],
"template": "#{{CHANGELOG}}",
"pr_template": "- #{{TITLE}}\n - PR: ##{{NUMBER}} by @#{{AUTHOR}}",
"empty_template": "#{{OWNER}}\n#{{REPO}}\n#{{FROM_TAG}}\n#{{TO_TAG}}",
"max_pull_requests": 1000,
"max_back_track_time_days": 1000,
"label_extractor": [
{
"pattern": "^fix",
"on_property": "title",
"method": "match",
"flags": "i"
}
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create a release
uses: softprops/action-gh-release@v1
with:
files: |
esm/index.js
esm/index.node.js
index.d.ts
node.d.ts
body: |
${{ steps.build_changelog.outputs.changelog }}