Skip to content
Open
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
51 changes: 38 additions & 13 deletions .github/workflows/pipeline-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,50 +13,75 @@ concurrency:
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
pipeline:
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version: ['14.x']
node-version: ['16.x']
os: ['ubuntu-latest']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
fetch-depth: 0

- uses: actions/cache@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: webpage install, build, and test
uses: actions/setup-node@v2
- name: Turbo Cache
uses: actions/cache@v3.0.4
with:
path: .turbo
key: turbo-${{ github.job }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.job }}-${{ github.ref_name }}-

- run: yarn install --prefer-offline
if: steps.yarn-cache.outputs.cache-hit != 'true'
id: install

- run: npm i -g lerna
id: lerna

- run: yarn run build
- run: yarn turbo run build --cache-dir=.turbo
id: turbo

- run: lerna exec npm pack
id: pack

- run: echo "::set-output name=date::$(date +'%Y-%m-%d')"

- name: Generate index
uses: docker://sourcegraph/scip-typescript:latest
with:
args: scip-typescript index
- name: Upload index
uses: docker://sourcegraph/src-cli:latest
with:
# this will upload to Sourcegraph.com, you may need to substitute a different command
# by default, we ignore failures to avoid disrupting CI pipelines with non-critical errors.
args: lsif upload -github-token=${{ secrets.GITHUB_TOKEN }} -ignore-upload-failure


- uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
automatic_release_tag: 'latest'
prerelease: true
files: |
LICENSE.md
LICENSE*
packages/**/*.tgz
id: 'automatic_releases'
12 changes: 0 additions & 12 deletions .github/workflows/size.yml

This file was deleted.

12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@disco3/monorepo",
"version": "0.0.4",
"version": "0.0.5",
"private": true,
"workspaces": [
"packages/*"
Expand All @@ -17,8 +17,6 @@
"gen:comp": "node packages/generateComponent.js"
},
"dependencies": {
"@strictsoftware/typedoc-plugin-monorepo": "^0.4.2",
"typedoc": "0.19.2"
},
"devDependencies": {
"@babel/core": "^7.17.5",
Expand Down Expand Up @@ -76,13 +74,13 @@
"size-limit": "^6.0.3",
"ts-jest": "^27.1.3",
"ts-node": "^10.4.0",
"tslib": "^2.3.1",
"turbo": "^1.1.2",
"typescript": "^4.5.4"
"tslib": "^2.4.0",
"turbo": "latest",
"typescript": "^4.6.4"
},
"engines": {
"npm": ">=7.0.0",
"node": ">=14.0.0"
},
"packageManager": "yarn@1.19.0"
"packageManager": "yarn@1.22.19"
}
Loading