Skip to content

FIX: test-command

FIX: test-command #3

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Release
# Controls when the workflow will run
on:
push:
tags:
- 'v*'
# Allows you to run this workflow manually from the Actions tab
#workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout πŸ›Ž
uses: actions/checkout@v4
- name: Setup node πŸ‘·πŸ½β€β™‚οΈ
uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm πŸ‘·πŸ½β€β™‚οΈ
uses: pnpm/action-setup@v3
id: pnpm-install
with:
version: 9
run_install: false
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm install
- name: Run tests πŸ§ͺ
run: pnpm test
- name: Build files πŸ”¨
run: pnpm build
- name: Add release to Github πŸ’Ύ
uses: ncipollo/release-action@v1
with:
artifacts: "dist/index.js,package.json"
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
- name: Add release to npm πŸ’Ύ
run: pnpm publish --no-git-checks # --no-git-checks as we're not on a branch but a tag!
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}