Skip to content

Update build-and-release.yml #3

Update build-and-release.yml

Update build-and-release.yml #3

name: Build and Release
on:
push:
branches:
- issue-#12
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
- name: Build the project
run: npm run build
- name: Post Build
run: npm run postbuild
- name: Build Binaries
run: npm run build:binaries
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref.replace('refs/tags/', '') }}

Check failure on line 43 in .github/workflows/build-and-release.yml

View workflow run for this annotation

GitHub Actions / Build and Release

Invalid workflow file

The workflow is not valid. .github/workflows/build-and-release.yml (Line: 43, Col: 21): Unexpected symbol: '('. Located at position 19 within expression: github.ref.replace('refs/tags/', '') .github/workflows/build-and-release.yml (Line: 44, Col: 25): Unexpected symbol: '('. Located at position 19 within expression: github.ref.replace('refs/tags/', '')
release_name: Release ${{ github.ref.replace('refs/tags/', '') }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/seam.cjs
asset_name: seam-cli
asset_content_type: application/octet-stream