Skip to content

Commit

Permalink
Create publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maphel committed Sep 3, 2023
1 parent 24d712a commit e1f5afc
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish

on:
push:
tags:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'

- name: Install Yarn 3 (Berry)
run: npm install -g yarn@berry

- name: Set up Yarn 3
run: yarn set version berry

- name: Install dependencies
run: yarn install --immutable

- name: Build
run: yarn build

- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit e1f5afc

Please sign in to comment.