Skip to content

Merge pull request #3 from dylanvorster/project_upgrade #12

Merge pull request #3 from dylanvorster/project_upgrade

Merge pull request #3 from dylanvorster/project_upgrade #12

Workflow file for this run

name: Publish
on:
push:
branches:
- master
tags-ignore:
- '**'
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install PNPM
run: npm i -g pnpm
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Build
run: pnpm build
- name: Test
run: pnpm test
- name: Configure .npmrc
run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> ~/.npmrc
- name: Publish
run: pnpm -r publish