Skip to content

Commit

Permalink
Merge pull request #37 from oslllo/security
Browse files Browse the repository at this point in the history
Security Update
  • Loading branch information
Ghustavh97 authored Jul 21, 2024
2 parents 8736e54 + 1432cd9 commit 3aa86de
Show file tree
Hide file tree
Showing 5 changed files with 1,356 additions and 877 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/cd.release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@

name: CD/Release

on:
push:
branches:
- master

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: oslllo-svg2
release-as: 3.0.0
# The logic below handles the npm publication:
- uses: actions/checkout@v2
# these if statements ensure that a publication only occurs when
Expand All @@ -23,12 +28,12 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}
# if you are using Yarn, substitute the command below with `yarn install --frozen-lockfile`
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
if: ${{ steps.release.outputs.release_created }}
30 changes: 14 additions & 16 deletions .github/workflows/ci.coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@ name: CI/Coverage
on: ["push", "pull_request"]

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: actions/checkout@v1

- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x

- name: npm install, npm test, npm run coverage
run: |
npm install
npm test
npm run coverage
- name: npm install, npm test, npm run coverage
run: |
npm install
npm test
npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/ci.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node-version: [10.x, 12.x, 14.x]
node-version: [18.x, 20.x, 21.x]

steps:
- uses: actions/checkout@v2
Expand Down
Loading

0 comments on commit 3aa86de

Please sign in to comment.