Skip to content

Uplift timeline-chart to latest version #1

Uplift timeline-chart to latest version

Uplift timeline-chart to latest version #1

name: NPM package (latest)
on:
push:
branches: [ master ]
jobs:
build:
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository == 'eclipse-cdt-cloud/theia-trace-extension' && "contains(github.event.head_commit.message, '[latest]:')"

Check failure on line 7 in .github/workflows/publish-latest.yml

View workflow run for this annotation

GitHub Actions / NPM package (latest)

Invalid workflow file

The workflow is not valid. .github/workflows/publish-latest.yml (Line: 7, Col: 9): Unexpected symbol: '"contains'. Located at position 135 within expression: github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository == 'eclipse-cdt-cloud/theia-trace-extension' && "contains(github.event.head_commit.message, '[latest]:')"
runs-on: ubuntu-latest
permissions:
contents: write
# For github-tag-action below
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
# Defaults to the user or organization that owns the workflow file
scope: '@theia-ide'
- run: yarn
- run: yarn publish:latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Push new (bumped) tag based on HEAD commit message
uses: anothrNick/[email protected]
env:
DEFAULT_BUMP: none # commit message includes #major|minor|patch
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true