Skip to content

ci: add github action for cd #53

ci: add github action for cd

ci: add github action for cd #53

Workflow file for this run

name: Node.js
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- run: npm ci --legacy-peer-deps
- run: npm run lint
- run: npm audit --omit=dev
continue-on-error: true
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- run: npm ci --legacy-peer-deps
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: single_page_application
path: dist
create-release:
runs-on: ubuntu-latest
# if: github.ref_name == 'main'
needs: [ lint_audit, build ]
steps:
- uses: actions/checkout@v4
- uses: cperezabo/[email protected]
- run: echo "VERSION=v$(git mkver next --format '{Docker}')" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
name: single_page_application
- run: (cd dist && zip -r ../living-images-viewer.zip . )
- uses: ncipollo/release-action@v1
with:

Check failure on line 49 in .github/workflows/node.js.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/node.js.yml

Invalid workflow file

You have an error in your yaml syntax on line 49
artifacts: "living-images-viewer.zip"
tag: '${{ env.VERSION }}''
generateReleaseNotes: 'true'