mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-29 11:56:04 +08:00
Update release process (#192)
This commit is contained in:
parent
9d17439447
commit
5f8e061061
22 changed files with 147 additions and 70 deletions
27
.github/workflows/publish.yml
vendored
Normal file
27
.github/workflows/publish.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Publish Packages
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
|
||||
jobs:
|
||||
build-package:
|
||||
name: "Publish to GitHub Packages"
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
if: github.repository_owner == 'parcelvoy'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js 18.x
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.x
|
||||
registry-url: https://npm.pkg.github.com/
|
||||
- run: npm ci
|
||||
- run: echo "registry=https://npm.pkg.github.com/@parcelvoy" >> .npmrc
|
||||
- run: npm run package:publish --tag=$(echo ${GITHUB_REF_NAME:1})
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -64,7 +64,7 @@ jobs:
|
|||
run: npm install && npm install --save-dev
|
||||
|
||||
- name: 'Run Jest Tests'
|
||||
run: npm run test -- --scope=platform
|
||||
run: npm run test -- --scope=@parcelvoy/platform
|
||||
env:
|
||||
NODE_ENV: test
|
||||
APP_SECRET: testing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue