Skip to content

Commit

Permalink
Merge pull request #88 from cyberixae/setup_continuous_deployment
Browse files Browse the repository at this point in the history
Setup continuous deployment
  • Loading branch information
cyberixae committed Aug 23, 2023
2 parents 3918809 + c4b0d48 commit e5d5d86
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CD

on:
push:
branches:
- main
paths:
- 'package.json'
- '.github/workflows/cd.yml'

env:
NODE_AUTH_TOKEN: ${{ secrets.PUBLIC_NPM_TOKEN }}

jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 15
name: publish
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
run: |
yarn
- name: Deploy to Registry
run: |
yarn deploy-npm
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '18'
- name: Install Dependencies
run: |
yarn
Expand Down

0 comments on commit e5d5d86

Please sign in to comment.