Skip to content

ci: Don't rebuild on CI test. #101

ci: Don't rebuild on CI test.

ci: Don't rebuild on CI test. #101

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Restore
run: npm ci
- name: Build
run: |
set -e
npm run build
npx @werk/cli publish --no-build --to-archive
- name: Test
run: |
set -e
npm run lint -- --max-warnings=0
npx @werk/cli depcheck
npx @werk/cli vitest run
- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken '${NPM_TOKEN}'
npx @werk/cli publish --from-archive
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}