Skip to content

Commit b4e1781

Browse files
authored
ci: remove deployment.yml (#271)
1 parent c21bf5e commit b4e1781

File tree

2 files changed

+17
-38
lines changed

2 files changed

+17
-38
lines changed

.github/workflows/deployment.yml

-14
This file was deleted.

.github/workflows/release.yml

+17-24
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,30 @@
1-
name: Deploy to Netlify
1+
name: Release
22

33
on:
4-
push:
5-
branches:
6-
- main # Change this if you're deploying from another branch
4+
workflow_dispatch:
75

86
jobs:
9-
deploy:
7+
release:
8+
name: Release
109
runs-on: ubuntu-latest
11-
1210
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v4
11+
- name: Checkout code
12+
uses: actions/checkout@v3
1513

16-
- name: Install Node.js
17-
uses: actions/setup-node@v4
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v3
1816
with:
19-
node-version: 18
17+
node-version: '20'
18+
cache: 'npm'
2019

2120
- name: Install dependencies
22-
run: npm install # Change this if using yarn or pnpm
21+
run: npm install
2322

24-
- name: Build the project
25-
run: npm run build:docs # Adjust according to your project
23+
- name: Build library
24+
run: npm run build:ngverse
2625

27-
- name: Deploy to Netlify
28-
uses: nwtgck/actions-netlify@v2
29-
with:
30-
publish-dir: './dist/docs/browser' # Change if your build output folder is different
31-
production-branch: main
32-
github-token: ${{ secrets.GITHUB_TOKEN }}
33-
deploy-message: 'Deployed from GitHub Actions'
26+
- name: Run semantic-release
3427
env:
35-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
36-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
37-
timeout-minutes: 1
28+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
29+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
run: npm run semantic-release

0 commit comments

Comments
 (0)