Skip to content

Commit

Permalink
chore(cd): add cd configuration (#15)
Browse files Browse the repository at this point in the history
* feat: add cd configuration

* run npm publish action on pull request for testing purposes

* v0.3.2-beta.0

* fix: remove `lint` and `test` commands and only run cd on `main`
  • Loading branch information
ayushmanchhabra authored May 14, 2022
1 parent 15272ca commit 0a7a6d0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: cd
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.1.0
with:
version: 6.32.2
run_install: true

- uses: actions/setup-node@v2
with:
node-version: '16'

- run: pnpm install
- run: pnpm build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "transform-jsx",
"version": "0.3.2",
"version": "0.3.2-beta.0",
"description": "Write reactive vanilla JavaScript in JSX.",
"author": "Ayushman Chhabra <ayushmxn@outlook.com>",
"license": "MIT",
Expand Down

0 comments on commit 0a7a6d0

Please sign in to comment.