Skip to content

v1.0.0

v1.0.0 #1

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 Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: lts/*
- name: 📥 Download dependencies
run: pnpm i
- name: 🚢 Deploy to NPM as 'latest'
if: github.event.release.prerelease == false
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: 🚢 Deploy to NPM as 'beta'
if: github.event.release.prerelease == true
run: pnpm publish --tag beta
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 }}