Skip to content

Commit

Permalink
chore: set up auto deployments
Browse files Browse the repository at this point in the history
for #11
  • Loading branch information
domoritz committed Apr 29, 2021
1 parent 7782ea6 commit dc56879
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish

on: workflow_dispatch

jobs:
publish:
runs-on: ubuntu-latest

name: Make a release and publish to NPM

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v1
- name: Install Node dependencies
run: yarn --frozen-lockfile
- run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"lint:fix": "yarn lint --fix",
"storybook": "cd packages/storybook && yarn storybook",
"sample": "yarn build && cd packages/sample-project && yarn --frozen-lockfile && yarn dev",
"clean": "rm -rf ./packages/svelte-vega/dist && rm -rf ./packages/storybook/_gh-pages && rm -rf && rm -rf ./packages/sample-project/public/build"
"clean": "rm -rf ./packages/svelte-vega/dist && rm -rf ./packages/storybook/_gh-pages && rm -rf && rm -rf ./packages/sample-project/public/build",
"release": "cd packages/svelte-vega && yarn semantic-release"
},
"devDependencies": {
"@babel/eslint-parser": "^7.13.14",
Expand All @@ -33,6 +34,8 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-svelte3": "^3.1.2",
"lerna": "^4.0.0",
"semantic-release": "^17.4.2",
"typescript": "^4.2.4",
"vega": "^5.20.2",
"vega-lite": "^5.1.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/svelte-vega/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"build": "rollup -c",
"dev": "rollup -c -w",
"validate": "svelte-check",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"semantic-release": "semantic-release"
},
"files": [
"src",
Expand Down

0 comments on commit dc56879

Please sign in to comment.