mirror of
https://github.com/chenasraf/simple-scaffold.git
synced 2026-05-18 01:29:09 +00:00
24 lines
699 B
YAML
24 lines
699 B
YAML
name: Semantic Release
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, develop, feat/*, fix/* ]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: "18.x"
|
|
- run: yarn install --frozen-lockfile
|
|
- run: yarn test
|
|
- run: yarn build
|
|
- run: cd ./dist && yarn pack --filename=../package.tgz
|
|
- run: yarn semantic-release
|
|
if: "!contains(github.event.head_commit.message, '[skip publish]')"
|
|
env:
|
|
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|