Skip to content

Commit 694119f

Browse files
authored
Merge pull request #42 from videsk/develop
GitHub Actions workflow for releasing and publishing
2 parents eb01a57 + 2f4357f commit 694119f

5 files changed

Lines changed: 1851 additions & 7074 deletions

File tree

.github/workflows/main.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release and Publish
2+
on:
3+
push:
4+
branches: [master]
5+
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
packages: write
13+
issues: write
14+
pull-requests: write
15+
env:
16+
NODE_AUTH_TOKEN: ${{ secrets.PAT_GITHUB }}
17+
18+
steps:
19+
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 'lts/*'
29+
registry-url: 'https://npm.pkg.github.com'
30+
scope: '@videsk'
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Build
36+
run: npm run build
37+
38+
- name: Release
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
npm_config_token: ${{ secrets.GITHUB_TOKEN }}
42+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
run: npx semantic-release

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@videsk:registry=https://npm.pkg.github.com
2+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}

0 commit comments

Comments
 (0)