Skip to content

chore: bump app version t0 1.4.7 #14

chore: bump app version t0 1.4.7

chore: bump app version t0 1.4.7 #14

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm install
- name: Build package
run: npm run prepack
# npm v10 may not inject the README into package metadata automatically.
# Embed it explicitly so the npm registry always displays it.
- name: Inject README into package.json
run: node -e "
const fs = require('fs');
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
pkg.readme = fs.readFileSync('README.md', 'utf8');
pkg.readmeFilename = 'README.md';
fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
"
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true