Skip to content

v1.1.0 — Telegram support #1

v1.1.0 — Telegram support

v1.1.0 — Telegram support #1

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- 'v*' # triggers on v1.0.0, v1.2.3, etc.
permissions:
contents: write # needed for GitHub release creation
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: NODE_ENV=test npm test
publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Also create a GitHub release from the tag
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true