Skip to content

Commit

Permalink
Merge branch 'master' into fix-dependency-vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
rdalton-va committed Mar 5, 2025
2 parents adc6d6a + 029d441 commit b4049b1
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 47 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Build and Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build Package
run: npm run build
- name: Run Tests
run: npm run test:ci
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# taken from the semantic-release documentation
# https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions

name: Release
on:
push:
branches:
- master
workflow_dispatch:

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18.x"
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Build Package
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release
47 changes: 0 additions & 47 deletions Jenkinsfile

This file was deleted.

0 comments on commit b4049b1

Please sign in to comment.