Skip to content

ci: fix npm registry not found (#20) #16

ci: fix npm registry not found (#20)

ci: fix npm registry not found (#20) #16

Workflow file for this run

name: e2e
on:
workflow_dispatch:
push:
branches:
- master
env:
NODE_VERSION: 16
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
e2e:
name: e2e test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Set yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
path: |
**/node_modules
**/.eslintcache
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Init
run: make init
- name: Build
run: make build
- name: e2e test
run: |
sed -i -e "s|<HOST>|${{ secrets.E2E_HOST }}|" -e "s|<TOKEN>|${{ secrets.E2E_TOKEN }}|" ava-e2e.config.js
make e2e