Skip to content

feat: drop semantic-release #4

feat: drop semantic-release

feat: drop semantic-release #4

Workflow file for this run

name: Test
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
- develop
types:
- opened
- synchronize
jobs:
Build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 'lts/*', 'latest']
steps:
- uses: actions/checkout@v4
- name: Test with Node ${{matrix.node-version}}
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}
- name: Pre-Run
run: |
npm install --package-lock-only
npm install --ignore-scripts
npm run build
- name: Run Tests and Lint
run: |
npm run lint
npm run test
- name: Upload build artifact
if: matrix.node-version == 'lts/*'
uses: actions/upload-artifact@v4
with:
name: cache
path: |
package.json
package-lock.json
./lib
"Release Drafter":

Check failure on line 48 in .github/workflows/test.yaml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yaml (Line: 48, Col: 3): The identifier 'Release Drafter' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-latest
needs: Build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Draft Release (Develop)
if: github.ref == 'refs/heads/develop'
uses: release-drafter/release-drafter@v6
with:
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Draft Release
if: github.ref != 'refs/heads/develop'
uses: release-drafter/release-drafter@v6
with:
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}