Skip to content

Add package files

Add package files #433

Workflow file for this run

name: Node.js CI
on:
[ push, pull_request ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
- run: npm ci
- run: npm run make
- name: Decode certificate file
run: |
$bytes = [Convert]::FromBase64String($env:WINDOWS_CERTIFICATE_FILE)
[IO.File]::WriteAllBytes("helmet_cs4.pfx", $bytes)
env:
WINDOWS_CERTIFICATE_FILE: ${{ secrets.WINDOWS_CERTIFICATE_FILE }}
- name: Publish package
run: npm run publish
if: ${{ github.ref == 'refs/heads/release' && github.event_name == 'push' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}