This repository was archived by the owner on Jan 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease-nestjs-https-redirect.yml
More file actions
68 lines (65 loc) · 1.72 KB
/
release-nestjs-https-redirect.yml
File metadata and controls
68 lines (65 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: release-nestjs-https-redirect
on:
workflow_dispatch:
defaults:
run:
working-directory: packages/nestjs-https-redirect
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: load cache
uses: actions/cache@v1
id: cache
with:
path: node_modules
key: node-${{ hashFiles('**/package-lock.json')}}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: npm test
run: npm test
release:
name: Release
runs-on: ubuntu-20.04
needs: test
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: load cache
uses: actions/cache@v1
id: cache
with:
path: node_modules
key: node-${{ hashFiles('**/package-lock.json')}}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Build
if: success()
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run build
- name: Create .npmrc
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
if: success()
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: "npx semantic-release"