Skip to content

feat: init

feat: init #1

Workflow file for this run

name: Release
on:
repository_dispatch:
# curl -v -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${GH_TOKEN}"
# https://api.github.com/repos/bent10/json-loose/dispatches -d '{ "event_type": "semantic-release" }'
types: [semantic-release]
push:
branches:
- main
- next
- next-major
- beta
- alpha
- '*.x'
jobs:
release:
name: Releasing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18 # required by semantic-release
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm test
- name: Installing release dependencies
run: |
npm i -D semantic-release @semantic-release/changelog @semantic-release/git
- name: Semantic release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release