Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 52a5fa3

Browse files
committed
ci: Add GitHub Actions workflow for releasing the TypeScript linter
1 parent 38c719b commit 52a5fa3

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'linters/typescript/**'
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: linters/typescript
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 'lts/*'
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Run tests
29+
run: npm test
30+
- name: Build
31+
run: npm run build
32+
- name: Configure npm
33+
run: |
34+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
35+
npm config set access public
36+
- name: Release
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
run: npx semantic-release

0 commit comments

Comments
 (0)