Skip to content

chore: disable tests for release #2

chore: disable tests for release

chore: disable tests for release #2

---
name: '📦 Create New Release'
on:
push:
branches:
- master
permissions: write-all
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
checks:
name: ✅ Check for Release
runs-on: ubuntu-latest
timeout-minutes: 15
env:
HUSKY: 0
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: 🧪 Check out repository code
uses: ./.github/workflows/health-check
with:
run-tests: 'false'
release:
name: 📦 Release Version
runs-on: ubuntu-latest
timeout-minutes: 60
needs:
- checks
env:
HUSKY: 0
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Git Config
run: |
git config --global user.name "github-bot"
git config --global user.email "github-bot@gmail.com"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Dependencies
run: |
npm ci --no-fund --no-audit --ignore-scripts --force
- name: Build
run: npm run build
- name: Setup NPM
run: |
npm config -L user set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
- name: Release
env:
# This is required to make semantic-release work with GitHub Actions
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# You can use this instead if no branch protection is enabled
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_AUTHOR_NAME: github-bot
GIT_AUTHOR_EMAIL: github-bot@gmail.com
GIT_COMMITTER_NAME: github-bot
GIT_COMMITTER_EMAIL: github-bot@gmail.com
run: |
npx semantic-release