Skip to content

Commit

Permalink
add actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Dec 4, 2023
1 parent b3fd5c4 commit aff83f4
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't be a jerk!
12 changes: 0 additions & 12 deletions .github/FUNDING.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---

name: Question / Help
about: I have a question or I need help

---

# Question / free support

<!-- Please provide a clear description of what problem you are trying to solve and how would you want it to be solved. -->
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make sure to run the test suite.
37 changes: 37 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
@@ -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'
20 changes: 20 additions & 0 deletions .github/workflows/validating.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "dropzone",
"name": "@deltablot/dropzone",
"version": "7.0.0",
"description": "Handles drag and drop of files for you.",
"keywords": [
Expand Down

0 comments on commit aff83f4

Please sign in to comment.