Skip to content

Commit

Permalink
Setup continuous deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberixae committed Aug 10, 2023
1 parent 23e7748 commit 52c4b67
Showing 1 changed file with 31 additions and 0 deletions.
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: "14"
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
run: |
yarn
- name: Deploy to Registry
run: |
yarn deploy-npm

0 comments on commit 52c4b67

Please sign in to comment.