Skip to content

v1.0.2

v1.0.2 #3

Workflow file for this run

name: Release Events
on:
release:
types: [published]
permissions:
id-token: write
deployments: write
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: ⬇️ Set up code
uses: actions/checkout@v4
with:
show-progress: false
- name: 📦 Setup PNPM
uses: pnpm/action-setup@v4
with:
version: 9
- name: ⎔ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: 📥 Download dependencies
run: pnpm i
- name: 🚢 Deploy to NPM as 'latest'
if: github.event.release.prerelease == false
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: 🚢 Deploy to NPM as 'beta'
if: github.event.release.prerelease == true
run: pnpm publish --tag beta --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
notify:
name: Notifications
needs: deploy
if: github.event.release.prerelease == false
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
steps:
- name: Release Notifier
uses: agrc/release-issue-notifications-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}