Skip to content

Commit

Permalink
ci: publish package on release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Jan 18, 2022
1 parent 5496ec2 commit 69eeeea
Show file tree
Hide file tree
Showing 3 changed files with 326 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 6
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 14
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Publish
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
"build": "trigen-scripts build",
"clean": "trigen-scripts clean",
"commit": "cz",
"release": "standard-version",
"bumpVersion": "standard-version",
"createGithubRelease": "simple-github-release",
"release": "pnpm bumpVersion && git push origin master --tags && pnpm createGithubRelease",
"updateGitHooks": "simple-git-hooks"
},
"keywords": [
Expand Down Expand Up @@ -80,6 +82,7 @@
"rollup": "^2.64.0",
"rollup-plugin-swc": "^0.2.0",
"simple-git-hooks": "^2.7.0",
"simple-github-release": "^1.0.0",
"size-limit": "^7.0.5",
"standard-version": "^9.3.2",
"tsd": "^0.19.1",
Expand Down
Loading

0 comments on commit 69eeeea

Please sign in to comment.