build: Switch to Yarn (#3057)

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
Lipis 2021-02-20 14:47:17 +02:00 committed by GitHub
parent 74e82d0d7c
commit 4bfcf105a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 15299 additions and 23668 deletions

View file

@ -8,7 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: docker build -t excalidraw .

View file

@ -12,22 +12,18 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Setup Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install dependencies
run: |
npm ci
npm ci --prefix src/packages/excalidraw
npm ci --prefix src/packages/utils
yarn --frozen-lockfile
yarn --cwd src/packages/excalidraw
yarn --cwd src/packages/utils
- name: Build @excalidraw/excalidraw
run: |
npm run pack --prefix src/packages/excalidraw
yarn --cwd src/packages/excalidraw run pack
- name: Build @excalidraw/utils
run: |
npm run pack --prefix src/packages/utils
yarn --cwd src/packages/utils run pack

View file

@ -9,7 +9,6 @@ on:
jobs:
cancel:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@0.6.0

View file

@ -16,7 +16,7 @@ jobs:
- name: Install and lint
run: |
npm ci
npm run test:other
npm run test:code
npm run test:typecheck
yarn --frozen-lockfile
yarn test:other
yarn test:code
yarn test:typecheck

View file

@ -3,7 +3,7 @@ name: Build locales coverage
on:
push:
branches:
- "l10n_master"
- l10n_master
jobs:
locales:
@ -21,7 +21,7 @@ jobs:
- name: Create report file
run: |
npm run locales-coverage
yarn locales-coverage
FILE_CHANGED=$(git diff src/locales/percentages.json)
if [ ! -z "${FILE_CHANGED}" ]; then
git config --global user.name 'Excalidraw Bot'
@ -33,7 +33,7 @@ jobs:
- name: Construct comment body
id: getCommentBody
run: |
body=$(npm run locales-coverage:description | grep '^[^>]')
body=$(yarn locales-coverage:description | grep '^[^>]')
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"

View file

@ -1,4 +1,4 @@
name: "Semantic PR title"
name: Semantic PR title
on:
pull_request_target:
@ -10,7 +10,6 @@ on:
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3.0.0
env:

View file

@ -1,4 +1,4 @@
name: New Sentry Production Release
name: New Sentry production release
on:
push:
@ -8,26 +8,21 @@ on:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1.0.0
- name: Setup Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install and build
run: |
npm ci
npm run build:app
yarn --frozen-lockfile
yarn build:app
env:
CI: true
- name: Install Sentry
run: |
curl -sL https://sentry.io/get-cli/ | bash
- name: Create new Sentry release
run: |
export SENTRY_RELEASE=$(sentry-cli releases propose-version)

View file

@ -5,16 +5,13 @@ on: pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install and test
run: |
npm ci
npm run test:app
yarn --frozen-lockfile
yarn test:app