Skip to content

Create npm-publish.yml #1

Create npm-publish.yml

Create npm-publish.yml #1

Workflow file for this run

# 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

Check failure on line 34 in .github/workflows/npm-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/npm-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
# 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