Uplift timeline-chart to latest version #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / NPM package (latest)Invalid workflow file
|
||
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 |