You've already forked AstralRinth
forked from didirus/AstralRinth
Skip Typescript compilation on packaging
This commit is contained in:
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@@ -24,3 +24,21 @@ jobs:
|
||||
run: pnpm lint
|
||||
- name: Run check
|
||||
run: pnpm check
|
||||
|
||||
release:
|
||||
needs: [lint]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Publish
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
cd package
|
||||
pnpm publish --no-git-checks --tag alpha
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- uses: EndBug/add-and-commit@v9
|
||||
if: github.ref == 'refs/heads/main'
|
||||
with:
|
||||
message: "Bump package version [skip ci]"
|
||||
default_author: github_actions
|
||||
|
||||
50
.github/workflows/release.yml
vendored
50
.github/workflows/release.yml
vendored
@@ -1,50 +0,0 @@
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: pnpm/action-setup@v2.1.0
|
||||
with:
|
||||
version: 6.32.0
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '18'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- name: Cache pnpm modules
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Package
|
||||
run: |
|
||||
pnpm version patch --commit-hooks false --git-tag-version false
|
||||
pnpm package
|
||||
|
||||
- name: Publish
|
||||
run: |
|
||||
cd package
|
||||
pnpm publish --no-git-checks --tag alpha
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
message: 'Bump package version [skip ci]'
|
||||
default_author: github_actions
|
||||
Reference in New Issue
Block a user