diff --git a/.github/workflows/detect-nodejs-vulnerability.yml b/.github/workflows/detect-nodejs-vulnerability.yml new file mode 100644 index 0000000..ccc56e9 --- /dev/null +++ b/.github/workflows/detect-nodejs-vulnerability.yml @@ -0,0 +1,20 @@ +name: "Node.js Vulnerabilities Detection" +on: + schedule: + - cron: "0 0 * * *" + +jobs: + is-my-node-vulnerable: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Check Node.js + uses: nodejs/is-my-node-vulnerable@v1 + with: + node-version: "18.14.1" + - uses: actions/checkout@v3 + - name: Check Node.js + uses: nodejs/is-my-node-vulnerable@v1 + with: + node-version: "18.14.1" + platform: "linux" diff --git a/.github/workflows/standard-version-nodejs.yml b/.github/workflows/standard-version-nodejs.yml new file mode 100644 index 0000000..942191d --- /dev/null +++ b/.github/workflows/standard-version-nodejs.yml @@ -0,0 +1,28 @@ +releaseAs: + description: 'Release as major|minor|patch' + required: false + default: 'minor' +prerelease: + description: 'Pre-release version alpha|beta|...' + required: false + +name: "Standard Version Nodejs Updates" +jobs: + standard-version-nodejs: + runs-on: ubuntu-latest + steps: + - uses: ltv/standard-version-action@v1.8.0 + - uses: actions/checkout@v2 + - name: Configure committer + run: | + git config user.name "GitHub Actions Bot" + git config user.email "<>" + - name: Bump version + id: release + uses: ltv/standard-version-action@v2 + with: + releaseAs: 'minor' + - run: | + echo "Released version: $VERSION" + env: + VERSION: ${{ steps.release.output.version }}