Skip to content

Bump eslint-plugin-lodash from 7.4.0 to 8.0.0 #10

Bump eslint-plugin-lodash from 7.4.0 to 8.0.0

Bump eslint-plugin-lodash from 7.4.0 to 8.0.0 #10

Workflow file for this run

name: cd-dgraph-js
on:
workflow_dispatch:
inputs:
releasetag:
description: "git tag to checkout and version to publish to npm"
required: true
type: string
releasetype:
description: "specify how to tag release on npm"
required: true
type: choice
options:
- latest
- rc
- beta
jobs:
dgraph-js-tests:
runs-on: warp-ubuntu-latest-x64-16x
strategy:
fail-fast: true
matrix:
node-version: [18.x, 19.x, 20.x, 21.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout dgraph-js repo
uses: actions/checkout@v4
with:
path: dgraph-js
repository: dgraph-io/dgraph-js
ref: ${{ github.event.inputs.releasetag }}
- name: Checkout dgraph repo
uses: actions/checkout@v4
with:
path: dgraph
repository: dgraph-io/dgraph
ref: main
- name: Set up Go
uses: actions/setup-go@v5

Check failure on line 39 in .github/workflows/cd-dgraph-js.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cd-dgraph-js.yml

Invalid workflow file

You have an error in your yaml syntax on line 39
with:
go-version-file: go.mod
- name: Build dgraph binary
run: cd dgraph && make docker-image # also builds dgraph binary
- name: Move dgraph binary to gopath
run: cd dgraph && mv dgraph/dgraph ~/go/bin/dgraph
- name: Setup node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: dgraph-js/package-lock.json
- name: Run dgraph-js tests
working-directory: dgraph-js
run: |
npm ci --legacy-peer-deps
bash scripts/run-tests.sh
dgraph-js-publish-npm:
needs: [dgraph-js-tests]
runs-on: warp-ubuntu-latest-x64-2x
steps:
- name: Checkout dgraph-js repo
uses: actions/checkout@v4
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Build dgraph-js package
run: npm ci --legacy-peer-deps
- run: npm publish --tag '${{ github.event.inputs.releasetype }}'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_DGRAPH_JS_TOKEN }}