Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "@rpidanny/eslint-config-typescript",
"rules": {
"no-unused-vars": "off",
"simple-import-sort/imports": "off",
"arrow-parens": "off",
"camelcase": "off",
"no-throw-literal": "error"
}
"extends": "@rpidanny/eslint-config-typescript",
"rules": {
"no-unused-vars": "off",
"simple-import-sort/imports": "off",
"arrow-parens": "off",
"camelcase": "off",
"no-throw-literal": "error"
}
}
22 changes: 11 additions & 11 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: 2
updates:
# Enable version updates for npm
- package-ecosystem: 'npm'
# Look for `package.json` and `lock` files in the `root` directory
directory: '/'
# Check the npm registry for updates every day (weekdays)
schedule:
interval: 'daily'
rebase-strategy: "auto"
labels:
- "security"
- "dependencies"
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
rebase-strategy: "auto"
labels:
- "security"
- "dependencies"
42 changes: 21 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: CI

on:
pull_request:
branches:
- '*'
pull_request:
branches:
- "*"

jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
build-and-test:
name: Build and Test
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"

- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build --if-present
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build --if-present

- name: Code Coverage
run: curl -s https://codecov.io/bash | bash
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
- name: Code Coverage
run: curl -s https://codecov.io/bash | bash
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
112 changes: 56 additions & 56 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
name: Release

on:
push:
branches:
- 'main'
- 'alpha'
- 'beta'
- '*.x'
- '*.*.x'
push:
branches:
- "main"
- "alpha"
- "beta"
- "*.x"
- "*.*.x"

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"

- run: npm ci
- run: npm run lint
- run: npm run semantic-release-dry-run
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
CI: true
# Grab the tag number by running semantic-release in dry mode and put the result in release_tag env variable
- run: echo "release_tag=$(npm run semantic-release-dry-run | grep -Po 'The next release version is \K([\w.-]*)')" >> $GITHUB_ENV
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
CI: true
- run: npm run test
#- run: sed -i 's|""|"https://cdn.jsdelivr.net/npm/@workadventure/scripting-api-extra@${{ env.release_tag }}/dist"|g' src/Features/default_assets_url.ts
- run: sed -i 's|""|"https://unpkg.com/@workadventure/scripting-api-extra@${{ env.release_tag }}/dist"|g' src/Features/default_assets_url.ts
- run: sed -i 's|""|"https://admin.workadventu.re/html"|g' src/Features/workadventure_assets_url.ts
- run: npm run build --if-present
- run: npm ci
- run: npm run lint
- run: npm run semantic-release-dry-run
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
CI: true
# Grab the tag number by running semantic-release in dry mode and put the result in release_tag env variable
- run: echo "release_tag=$(npm run semantic-release-dry-run | grep -Po 'The next release version is \K([\w.-]*)')" >> $GITHUB_ENV
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
CI: true
- run: npm run test
#- run: sed -i 's|""|"https://cdn.jsdelivr.net/npm/@workadventure/scripting-api-extra@${{ env.release_tag }}/dist"|g' src/Features/default_assets_url.ts
- run: sed -i 's|""|"https://unpkg.com/@workadventure/scripting-api-extra@${{ env.release_tag }}/dist"|g' src/Features/default_assets_url.ts
- run: sed -i 's|""|"https://admin.workadventu.re/html"|g' src/Features/workadventure_assets_url.ts
- run: npm run build --if-present

# Deployment on Github Pages
- name: "Deploy Github Pages"
uses: JamesIves/github-pages-deploy-action@v4
if: github.ref == 'refs/heads/main'
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # <- Branche sur laquelle seront commités les fichiers
FOLDER: dist/ # <- Dossier contenant notre documentation générée
BASE_BRANCH: main
# Deployment on Github Pages
- name: "Deploy Github Pages"
uses: JamesIves/github-pages-deploy-action@v4
if: github.ref == 'refs/heads/main'
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # <- Branche sur laquelle seront commités les fichiers
FOLDER: dist/ # <- Dossier contenant notre documentation générée
BASE_BRANCH: main

# Code coverage
#- name: "Code coverage"
# run: curl -s https://codecov.io/bash | bash
# env:
# CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
# Code coverage
#- name: "Code coverage"
# run: curl -s https://codecov.io/bash | bash
# env:
# CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

# Deployment on npm
- name: "Deploy NPM"
run: npm run semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
CI: true
# Deployment on npm
- name: "Deploy NPM"
run: npm run semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
CI: true
8 changes: 4 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"trailingComma": "all",
"singleQuote": false,
"printWidth": 100,
"tabWidth": 4
"trailingComma": "all",
"singleQuote": false,
"printWidth": 100,
"tabWidth": 4
}
Loading