Skip to content

Commit

Permalink
feat: release setup
Browse files Browse the repository at this point in the history
  • Loading branch information
akkadaska committed Sep 24, 2022
1 parent e9dc735 commit 22fa010
Show file tree
Hide file tree
Showing 3 changed files with 11,640 additions and 3,231 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install npm dependency
run: npm ci
- name: Run Jest
run: npm run test
- name: Build
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
Loading

0 comments on commit 22fa010

Please sign in to comment.