refactor: vendor content as regular files (remove git submodules) so CI builds don't need GitHub auth

This commit is contained in:
asepharyana
2026-07-02 02:38:04 +07:00
parent 7b106fe562
commit 134674d7dd
452 changed files with 75011 additions and 4 deletions
@@ -0,0 +1,26 @@
name: Lint
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js v24
uses: actions/setup-node@v4
with:
node-version: 24
- run: npm install --verbose
- run: npx patch-package
- run: npm run test
@@ -0,0 +1,49 @@
name: Release
on:
push:
tags:
- '3*' # Trigger on version 3.x.x tags
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js v22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Configure npm for publishing
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Get current published version (if any)
id: current_version
run: |
version=$(npm view discord.js-selfbot-v13 version || echo "none")
echo "version=$version" >> $GITHUB_OUTPUT
- name: Deprecate previous version
if: steps.current_version.outputs.version != 'none'
run: |
echo "Deprecating version ${{ steps.current_version.outputs.version }}"
npm deprecate discord.js-selfbot-v13@${{ steps.current_version.outputs.version }} "Deprecated: Please use the latest version."
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to NPM
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}