Bump @types/node from 22.7.9 to 22.8.1 (#200) #409
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master, main] | |
pull_request: | |
branches: [master, main] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Build | |
run: | | |
npm run build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: raid-chat-alert.js # TODO: Read from package.json | |
path: dist/raid-chat-alert.js | |
create-release: | |
needs: build | |
runs-on: ubuntu-latest | |
if: (github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')) | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # allows for tags access | |
- uses: actions/download-artifact@v4 | |
name: Download compiled JS file | |
with: | |
name: raid-chat-alert.js # TODO: Read from package.json | |
path: release-artifacts/ | |
- name: Create release | |
uses: ncipollo/[email protected] | |
with: | |
replacesArtifacts: true | |
allowUpdates: true | |
artifactErrorsFailBuild: true | |
artifacts: "release-artifacts/*" | |
body: ${{ github.event.head_commit.message }} | |
prerelease: true | |
name: Nightly Release | |
tag: nightly-build | |
- name: Update nightly-build tag | |
run: | | |
git tag -f nightly-build | |
git push -f origin nightly-build | |
shell: bash |