Skip to content

Update package

Update package #1

Workflow file for this run

name: CI
on: workflow_dispatch
inputs:

Check failure on line 5 in .github/workflows/deps.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/deps.yml (Line: 5, Col: 1): Unexpected value 'inputs'
package:
required: true
version:
default: "latest"
jobs:
prerelease:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node 18
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- run: npm ci
- name: Update package
run: npm i ${{ inputs.package }}@${{ inputs.version }}
- name: Create and publish PR
run: |
VERSION=$(npm explore --no-workspaces @diplodoc/transform "node -pe 'require(\"./package.json\").version'" --shell sh)
git push -f origin :ci/update-deps/${{ inputs.package }}-$VERSION
git checkout -b ci/update-deps/${{ inputs.package }}-$VERSION
git add package.json package-lock.json
git commit -m "deps: Update @diplodoc/transform to $VERSION"
git push -u origin/ci/update-deps/${{ inputs.package }}-$VERSION
gh pr create -f