Skip to content

chore: release v0.1.0 #3

chore: release v0.1.0

chore: release v0.1.0 #3

name: Ship js trigger
on:
pull_request:
types:
- closed
permissions:
contents: write
packages: write
jobs:
build:
name: Release
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
steps:
- name: Checkout code 🛎
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Setup GitHub Actor
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
- name: Setup node environment 📦
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org
check-latest: true
cache: 'npm'
scope: '@dscvr-one'
- name: Install dependencies 🚀
run: npm ci --prefer-offline --no-audit
- name: Trigger a release 🥳
run: npx shipjs trigger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}