Skip to content

Add release date to changelog #1

Add release date to changelog

Add release date to changelog #1

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: 'ubuntu-22.04'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Version check
run: |
package_json_version=$(node -e 'console.log(require("./package.json").version)')
if [ "v$package_json_version" != $GITHUB_REF_NAME ]; then
echo "Version in package.json (v$package_json_version) does not match the tag ($GITHUB_REF_NAME)"
exit 1
fi
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Prettier
run: npm run prettier:check
- name: TypeScript
run: npm run type-check
- name: Build
run: npm run build
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public