Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
fix: added semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
artemnih committed Jun 16, 2022
1 parent e11afa0 commit 0d8ffc6
Show file tree
Hide file tree
Showing 4 changed files with 4,650 additions and 1,091 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/.publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish to NPM
on:
pull_request:
branches:
- dev
types: [closed]
jobs:
release:
if: github.event.pull_request.merged == true
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
always-auth: true
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: npm ci --no-optional

- name: Build
run: npm run build:lib

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 0d8ffc6

Please sign in to comment.