Skip to content

add VAULT_TOKEN_PATH option #33

add VAULT_TOKEN_PATH option

add VAULT_TOKEN_PATH option #33

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
# Only run on the master branch.
branches: [master]
pull_request:
# Only run on pull requests against master.
branches: [master]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Test
run: npm test
- name: Lint
run: npm run lint
- name: Audit
run: npm audit --production
- name: Build
run: npm run build
- name: Get branch name
id: get_branch
run: |

Check failure on line 38 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 38, Col: 14): Unexpected symbol: 'ref#refs/heads/'. Located at position 8 within expression: github.ref#refs/heads/
if [[ "${{ github.ref }}" == "refs/heads/"* ]]; then
echo "BRANCH_NAME=${{ github.ref#refs/heads/ }}" >> $GITHUB_ENV
else
echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
fi
- name: Publish to npm
if: startsWith(github.ref, 'refs/heads/') && github.ref != 'refs/heads/master'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
# Publish with the branch name as a tag for non-main branches
npm publish --tag $BRANCH_NAME