Skip to content

add release workflow #7

add release workflow

add release workflow #7

Workflow file for this run

name: release
on:
pull_request:
branches:
- master
push:
branches:
- master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
release:
if: "!contains(github.event.head_commit.message, 'chore(release)')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: {{ github.head_ref }}

Check failure on line 25 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 25, Col: 16): A mapping was not expected
- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Release
run: npm run release