Skip to content

nest working-directory inside with #25

nest working-directory inside with

nest working-directory inside with #25

Workflow file for this run

name: Package zenoh-ts
on:
workflow_dispatch:
inputs:
publish:
description: 'Publish artifacts'
default: false
required: false
type: boolean
version:
description: 'Library version'
required: false
default: '0.0.1'
type: string
zenoh_version:
description: 'Zenoh version'
required: true
type: string
default: '1.0.0-alpha.6'
push:
jobs:
package:
name: Package app for ${{ matrix.job.name }}
env:
NUXT_PUBLIC_VERSION: ${{ inputs.version }}
strategy:
fail-fast: false
matrix:
job:
- { name: 'Ubuntu x64', os: 'ubuntu-22.04', arch: X64 }
runs-on: ['self-hosted', '${{ matrix.job.os }}', '${{ matrix.job.arch }}']
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: git config
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Setup Node
uses: actions/setup-node@v4
with:
working-directory: zenoh-ts
node-version: 20
registry-url: https://npm.pkg.github.com/
- name: Run install
uses: borales/actions-yarn@v4
with:
working-directory: zenoh-ts
cmd: install
- name: transpile code
with:
working-directory: zenoh-ts
run: yarn run build

Check failure on line 62 in .github/workflows/package.yaml

View workflow run for this annotation

GitHub Actions / Package zenoh-ts

Invalid workflow file

The workflow is not valid. .github/workflows/package.yaml (Line: 62, Col: 9): Unexpected value 'run' .github/workflows/package.yaml (Line: 59, Col: 9): Required property is missing: uses
- name: Publish
id: publish
shell: bash
with:
working-directory: zenoh-ts
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
npm install
npx release-it
- name: Cleanup
with:
working-directory: zenoh-ts
if: always()
run: |
rm -rf node_modules
rm -rf dist
rm -rf package-lock.json