Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
chore: use node 12 with yarn and bridge release
Browse files Browse the repository at this point in the history
  • Loading branch information
marierigal committed Dec 10, 2020
1 parent bdd2f84 commit 205d471
Show file tree
Hide file tree
Showing 12 changed files with 11,640 additions and 12,822 deletions.
5 changes: 5 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: 1
update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "live"
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* @Leadformance/fo-devs
package.json @Leadformance/fo-devs @Leadformance/dependabot-approvers
yarn.lock @Leadformance/fo-devs @Leadformance/dependabot-approvers
11 changes: 11 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Dependabot PR
on: pull_request

jobs:
auto-approve:
runs-on: ubuntu-latest
steps:
- uses: hmarr/[email protected]
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
with:
github-token: "${{ secrets.CI_GH_TOKEN }}"
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI
on:
push:
branches:
- master
- next
pull_request:

jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://solocal.jfrog.io/solocal/api/npm/npm/
always-auth: true
- name: "Cache node modules"
id: cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: "Install dependencies"
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --pure-lockfile
env:
HUSKY_SKIP_INSTALL: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: "Build & tests"
run: |
yarn ci-validate
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: "Keep dist folder"
run: |
cp -a dist/. docs/dist
git add docs/dist
git add -f dist
git commit -m "release(app): generate dist files"
- name: "Release"
run: |
yarn gh-actions-bridge-semantic-release
env:
SEMVER_RELEASE_TYPE: LIBRARY_NODE
ACTION_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.CI_GH_TOKEN }}
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
always_job:
name: Aways run job
runs-on: ubuntu-latest
steps:
- name: Always run
run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped."
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@bridge:registry=https://solocal.jfrog.io/solocal/api/npm/npm/
always-auth = true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.7.0
12
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ See the full [documentation](https://leadformance.github.io/batMap/).
### Run the example project

Run `npm run build-dev` and launch the example folder on a local server.
Any changes will be watched.
To sync the browser with changes run `npm start` in another terminal.

### Validate your code

Expand Down
Loading

0 comments on commit 205d471

Please sign in to comment.