Skip to content

Update discordMessages.js #25

Update discordMessages.js

Update discordMessages.js #25

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided token with repo scope
TAG: ${{ github.ref_name }} # The name of the pushed tag (e.g., v1.0.0)
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install Node Packages
run: npm install
- name: Fix imports in src (replace .ts with .js)
run: |
set -euo pipefail
find src -type f -name "*.js" -exec sed -i "s/require(\(.*\)index\.ts/require(\1index/g" {} +
- name: Build Typescript
run: npx tsc
- name: Copy Source to Dist folder
run: cp src/ dist/ -r
- name: remove config folder from dist
run: rm dist/config/ -r
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-output
path: |
dist/**
package.json
package-lock.json