Skip to content

chore(deps-dev): bump @types/lodash from 4.17.0 to 4.17.1 #867

chore(deps-dev): bump @types/lodash from 4.17.0 to 4.17.1

chore(deps-dev): bump @types/lodash from 4.17.0 to 4.17.1 #867

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
outputs:
has-updated: ${{ steps.version-updated.outputs.has-updated }}
strategy:
matrix:
node-version: ["14.x", "16.x", "18.x"]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
- run: |
npm install
node ./node_modules/ts-node/dist/bin.js ./build/copyfiles.ts
node ./node_modules/typescript/bin/tsc
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- uses: JiPaix/[email protected]
id: version-updated
with:
path: package.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: build
if: github.ref == 'refs/heads/main' && needs.build.outputs.has-updated
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: 'https://registry.npmjs.org'
- run: |
touch .env
echo PA_TOKEN=${{ secrets.PA_TOKEN }} >> .env
echo DISCORD_CHANNEL_ID=${{ secrets.DISCORD_CHANNEL_ID }} >> .env
echo DISCORD_SECRET=${{ secrets.DISCORD_SECRET }} >> .env
npm install
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}