Skip to content

Publish Build

Publish Build #15

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
default: ''
jobs:
master:
runs-on: ubuntu-22.04
name: Build and publish
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_AUTOMATION_TOKEN }}
- name: Set input data
id: input_data
run: |
if [[ ${{ github.ref }} == 'refs/heads/master' ]]; then
echo "::set-output name=target::latest"
else
echo "::set-output name=target::beta"
fi
- uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
VERSION: ${{ github.event.inputs.version }}
run: |

Check failure on line 38 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: 38, Col: 14): Unrecognized named-value: 'VERSION'. Located at position 1 within expression: VERSION .github/workflows/release.yml (Line: 48, Col: 20): Unrecognized named-value: 'VERSION'. Located at position 1 within expression: VERSION
yarn install
yarn set-version ${{ VERSION }}
yarn publish:${{ steps.input_data.outputs.target }}
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Github-Bot
author_email: [email protected]
message: 'Release version ${{ VERSION }}'
- name: Notify to Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
username: Chain List Notifier
title: ${{ github.workflow }}
description: |
The deployment has been completed.
Release version ${{ VERSION }}