Skip to content

Commit

Permalink
chore: simplify ci setup and add caching (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored Aug 12, 2022
1 parent 05f8eca commit 77cec33
Show file tree
Hide file tree
Showing 4 changed files with 708 additions and 1,018 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ name: Publish
on:
push:
branches-ignore:
# No canary deploys for branches opened by dependabot
- 'dependabot/**'
# No canary deploys for branches opened by dependabot
- 'dependabot/**'

jobs:
publish:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"

name: Make a release and publish to NPM

steps:
- uses: actions/checkout@v3

- name: Prepare repository
run: git fetch --unshallow --tags
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install Node dependencies
run: yarn --frozen-lockfile
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ jobs:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
cache: 'yarn'

- name: Install Node dependencies
run: yarn --frozen-lockfile

- run: yarn lint
- run: yarn build
- run: yarn build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"typescript": "^4.7.4",
"vega": "^5.19.1",
"vega-lite": "^5.0.0",
"vega-lite-dev-config": "^0.20.0"
"vega-lite-dev-config": "^0.21.0"
},
"peerDependencies": {
"vega": "*",
Expand Down
Loading

0 comments on commit 77cec33

Please sign in to comment.