Skip to content

Commit

Permalink
prepare for package publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Jul 13, 2022
1 parent 07aa326 commit d4610df
Show file tree
Hide file tree
Showing 5 changed files with 12,852 additions and 5,053 deletions.
94 changes: 0 additions & 94 deletions .github/workflows/ci.yml

This file was deleted.

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:
push:
branches: [main]

jobs:
deploy:
name: Publish package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.13.0
registry-url: https://npm.pkg.github.com/
- name: Install dependencies
run: npx ci
- name: Build
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@rlty-live:registry=https://npm.pkg.github.com/rlty-live

//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
Loading

0 comments on commit d4610df

Please sign in to comment.