Skip to content

Test ci 2

Test ci 2 #1

Workflow file for this run

name: publish package on npm
on:
push:
branches:
- production
pull_request:
# types: [closed]
branches:
- production
jobs:
test:
#if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.com
- name: Install dependencies
run: pnpm i --frozen-lockfile && pnpm add @edge-runtime/vm --save
- name: test
run: pnpm test
# - name: Install dependencies and build
# run: pnpm run build
# - name: Publish package on NPM
# run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}