Skip to content

Commit f635ff7

Browse files
committed
upd workflows
1 parent f1da296 commit f635ff7

2 files changed

Lines changed: 12 additions & 41 deletions

File tree

.github/workflows/deploy-npm.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Push to NuGet
1+
name: Publish to NPM
22

33
on:
44
release:
55
types: [released]
66

77
jobs:
8-
verify:
9-
name: Verify
8+
publish:
9+
name: Publish
1010
if: github.event_name != 'pull_request'
1111
runs-on: ubuntu-latest
1212
steps:
@@ -27,21 +27,6 @@ jobs:
2727

2828
- name: Test
2929
run: npm run test:ci
30-
31-
publish:
32-
runs-on: ubuntu-latest
33-
needs: [ verify ]
34-
permissions:
35-
contents: write
36-
steps:
37-
- name: Checkout
38-
uses: actions/checkout@v4.2.2
3930

40-
- name: Install dependencies
41-
run: npm install
42-
43-
- name: Build Metro UI
44-
run: npm run build
45-
46-
- name: Build Metro UI
47-
run: npm run pub
31+
- name: Publish to NPM
32+
run: npm run pub

.github/workflows/deploy-nuget.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Push to NuGet
1+
name: Publish to NuGet
22

33
on:
44
release:
55
types: [released]
66

77
jobs:
8-
verify:
9-
name: Verify
8+
publish:
9+
name: Publish
1010
if: github.event_name != 'pull_request'
1111
runs-on: ubuntu-latest
1212
steps:
@@ -28,15 +28,6 @@ jobs:
2828
- name: Test
2929
run: npm run test:ci
3030

31-
publish:
32-
runs-on: ubuntu-latest
33-
needs: [ verify ]
34-
permissions:
35-
contents: write
36-
steps:
37-
- name: Checkout
38-
uses: actions/checkout@v4.2.2
39-
4031
- name: get-npm-version
4132
id: package-version
4233
uses: martinbeentjes/npm-get-version-action@v1.3.1
@@ -46,22 +37,17 @@ jobs:
4637
with:
4738
nuget-version: 'latest'
4839
nuget-api-key: ${{ secrets.NUGET_KEY }}
49-
50-
- name: Install dependencies
51-
run: npm install
52-
53-
- name: Build Metro UI
54-
run: npm run build
5540

5641
- name: Set version
5742
id: update
5843
uses: vers-one/dotnet-project-version-updater@v1.7
5944
with:
6045
file: "metroui.nuspec"
6146
version: ${{ steps.package-version.outputs.current-version }}
62-
47+
6348
- name: Create NuGet package
6449
run: nuget pack metroui.nuspec
6550

66-
- name: Push to NuGet
67-
run: nuget push metroui.nupkg -Source https://api.nuget.org/v3/index.json
51+
- name: Publish to NuGet
52+
run: nuget push metroui.nupkg -Source https://api.nuget.org/v3/index.json
53+

0 commit comments

Comments
 (0)