Skip to content

Commit

Permalink
feat: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Netail committed Jan 29, 2025
1 parent 3ca6dbb commit 636856f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
push:
branches:
- main

jobs:
build:
name: Build & publish package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Node setup
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'yarn'
token: ${{ secrets.GITHUB_TOKEN }}
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Install packages
run: yarn install

- name: Build
run: yarn build

- name: Publish
run: npm publish --access public

0 comments on commit 636856f

Please sign in to comment.