Skip to content

Commit

Permalink
Fix Release script (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Dec 9, 2021
1 parent 4694940 commit f512b5d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-17-yarn-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-${{ matrix.node-version }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-17-yarn-
${{ runner.os }}-${{ matrix.node-version }}-yarn-
- name: Install Dependencies using Yarn
run: yarn
- run: yarn build
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,17 @@ jobs:
with:
node-version: 16.x

- name: Setup NPM credentials
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install Dependencies
run: yarn

- name: Build Packages
run: yarn build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@master
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"scripts": {
"format": "prettier . --write",
"prebuild": "rimraf packages/**/dist",
"build": "tsc --project tsconfig.json && bob build",
"prebuild": "rimraf packages/*/dist",
"build": "tsc --project tsconfig.build.json && bob build",
"test": "jest --passWithNoTests",
"prerelease": "yarn build",
"release": "changeset publish",
"release": "yarn build && changeset publish",
"release:canary": "(node scripts/canary-release.js && yarn build && yarn changeset publish --tag canary) || echo Skipping Canary..."
},
"repository": {
Expand Down
15 changes: 15 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"sourceMap": false,
"inlineSourceMap": false
},
"exclude": [
"**/test/*.ts",
"*.spec.ts",
"**/tests",
"**/test-assets",
"**/test-files",
"packages/testing"
]
}
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"compilerOptions": {
"incremental": true,
"baseUrl": ".",
"outDir": "dist",
"rootDir": "packages",

"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"importHelpers": true,
Expand Down

0 comments on commit f512b5d

Please sign in to comment.