Skip to content

chore(deps): update npm packages (#6) #2

chore(deps): update npm packages (#6)

chore(deps): update npm packages (#6) #2

Workflow file for this run

name: Release
on:
push:
branches:
- main
paths:
- package.json
jobs:
check:
name: Check version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
version_changed: ${{ steps.version.outputs.changed }}
steps:
- uses: taiki-e/checkout-action@v1
- name: Check version changes
uses: EndBug/version-check@v2
id: version
with:
static-checking: localIsNew
file-url: https://unpkg.com/coc-oxc@latest/package.json
file-name: package.json
- name: Set version name
if: steps.version.outputs.changed == 'true'
run: |
echo "Version change found! New version: ${{ steps.version.outputs.version }} (${{ steps.version.outputs.version_type }})"
release:
needs: check

Check failure on line 34 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: 34, Col: 5): Required property is missing: runs-on
if: needs.check.outputs.version_changed == 'true'
name: Release
steps:
- uses: taiki-e/checkout-action@v1
- name: Setup Node
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 16
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --dry-run --tag latest --provenance --access public