Skip to content

Commit

Permalink
Add publish action, remove size action (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
gamebox authored Jan 3, 2024
1 parent b24a584 commit 4f1589f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 12 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish
on:
release:
types: [created]
jobs:
build:
name: Publish package to npm

runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Use Node 16
uses: actions/setup-node@v4
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
cache: pnpm
cache-dependency-file: pnpm-lock.yaml

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Publish to npm
run: pnpm publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
12 changes: 0 additions & 12 deletions .github/workflows/size.yml

This file was deleted.

0 comments on commit 4f1589f

Please sign in to comment.