Skip to content

fix(gha): first version of actions. #1

fix(gha): first version of actions.

fix(gha): first version of actions. #1

Workflow file for this run

name: build
on:
push:
branches:
- "**"
tags-ignore:
- v*.*.* # skip semantic-release tags
pull_request:
env:
NODE_VERSION: "18.18"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build
semantic-release:
runs-on: ubuntu-latest
needs: [build, test, lint]
if: github.event_name == "push" && ( github.ref == "refs/heads/pre" || github.ref == "refs/heads/main")

Check failure on line 54 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 54, Col: 9): Unexpected symbol: '"push"'. Located at position 22 within expression: github.event_name == "push" && ( github.ref == "refs/heads/pre" || github.ref == "refs/heads/main")
steps:
- uses: actions/checkout@v4
- name: Setup node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build
- name: semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx -p "@semantic-release/exec" semantic-release --debug