Skip to content

Commit

Permalink
feat: sync Github and NPM releases (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent authored Dec 13, 2023
1 parent 54bd6dc commit 431a158
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Install Dependencies
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release

on: workflow_dispatch
on:
release:
types: [published]

jobs:
release:
Expand All @@ -12,8 +14,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Install Dependencies
Expand All @@ -23,6 +26,6 @@ jobs:
run: yarn build

- name: Publish
run: npm publish --access public
run: yarn publish --access public --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 431a158

Please sign in to comment.