forked from steveseguin/offline_deployment
-
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (66 loc) · 2.18 KB
/
npm-publish.yml
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
69
70
71
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Deploy Environment
# You may pin to the exact commit or the version.
# uses: parasoft/deploy-environment-action@486e9382c6c2958fcbaad60b895da799d16730c2
uses: parasoft/deploy-environment-action@1.0.2
with:
# CTP URL
ctpUrl:
# CTP Username
ctpUsername:
# CTP Password
ctpPassword:
# Name of the system
system:
# Name of the environment
environment:
# Name of the environment instance to provision
instance:
# Fail action and abort on provisioning failure
abortOnFailure: # optional
# Virtual assets in the environment will be replicated on another server
copyToVirtualize: # optional
# The environment assets will be copied to a Virtualize server matching this name
virtServerName: # optional
# The name for the replicated environment can be used to later destroy the environment
newEnvironmentName: # optional
# Duplicate associated data repositories before provisioning
duplicateDataRepo: # optional
# Where to duplicate data repository
duplicateType: # optional
# The host of the data repository server
repoHost: # optional
# The port of the data repository server
repoPort: # optional
# The username of the data repository server
repoUsername: # optional
# The password of the data repository server
repoPassword: # optional