Skip to content

Commit 78cd241

Browse files
committed
Added release config
1 parent d7de2e2 commit 78cd241

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
token: ${{ secrets.GI_BOT_PAT }}
17+
18+
- name: Prepare repository
19+
run: git fetch --unshallow --tags
20+
21+
- name: Setup Node
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version-file: '.nvmrc'
25+
cache: 'yarn'
26+
registry-url: https://npm.pkg.github.com
27+
scope: '@tithely'
28+
29+
- name: Create Release
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: |
34+
yarn install --immutable
35+
yarn build
36+
npm publish

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@tithely:registry=https://npm.pkg.github.com/

0 commit comments

Comments
 (0)