diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..e30ad6097 --- /dev/null +++ b/.github/CODE_OF_CONDUCT.md @@ -0,0 +1 @@ +Don't be a jerk! diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 5a05a4aba..000000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [enyo] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -# patreon: # Replace with a single Patreon username -# open_collective: # Replace with a single Open Collective username -# ko_fi: # Replace with a single Ko-fi username -# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -# liberapay: # Replace with a single Liberapay username -# issuehunt: # Replace with a single IssueHunt username -# otechie: # Replace with a single Otechie username -# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md new file mode 100644 index 000000000..edc5a59af --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,10 @@ +--- + +name: Question / Help +about: I have a question or I need help + +--- + +# Question / free support + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..b9300045a --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1 @@ +Make sure to run the test suite. diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 000000000..317fd9da2 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,37 @@ +name: "CodeQL" + +on: + push: + branches: [ master, dev ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ dev ] + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'javascript' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + - name: Build javascript file + run: npm run build + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/publishing.yml b/.github/workflows/publishing.yml new file mode 100644 index 000000000..c5da2c737 --- /dev/null +++ b/.github/workflows/publishing.yml @@ -0,0 +1,25 @@ +name: publish +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + name: Publish latest release + steps: + - uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: '20.x' + cache: 'npm' + registry-url: 'https://registry.npmjs.org' + - name: Install dependencies + run: yarn install + - name: Build dist files + run: yarn run build + - name: Publish package + uses: JS-DevTools/npm-publish@v2 + with: + token: ${{ secrets.NPM_TOKEN }} + access: 'public' diff --git a/.github/workflows/validating.yml b/.github/workflows/validating.yml new file mode 100644 index 000000000..20b39a7e9 --- /dev/null +++ b/.github/workflows/validating.yml @@ -0,0 +1,20 @@ +name: validate +on: [push, pull_request] +jobs: + run-test: + runs-on: ubuntu-latest + strategy: + matrix: + node: [ '18', '20' ] + name: Node ${{ matrix.node }} test + steps: + - uses: actions/checkout@v3 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + cache: 'npm' + - name: Install dependencies + run: yarn + - name: Run test + run: yarn run test diff --git a/package.json b/package.json index ab2d59c65..af18c1c0a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "dropzone", + "name": "@deltablot/dropzone", "version": "7.0.0", "description": "Handles drag and drop of files for you.", "keywords": [