Fix workflow NPM publish auth secret
This commit is contained in:
parent
9e29761581
commit
4ca06a9218
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
@ -6,16 +6,18 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: pnpm/action-setup@v2.2.2
|
- name: Install Node.js
|
||||||
with:
|
uses: actions/setup-node@v3
|
||||||
version: 7
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
|
- uses: pnpm/action-setup@v2.2.2
|
||||||
|
with:
|
||||||
|
version: 7
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
- name: Run build
|
- name: Run build
|
||||||
@ -30,25 +32,29 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
- uses: pnpm/action-setup@v2.2.2
|
uses: actions/checkout@v3
|
||||||
with:
|
- name: Install Node.js
|
||||||
version: 7
|
uses: actions/setup-node@v3
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
- name: Install dependencies
|
- uses: pnpm/action-setup@v2.2.2
|
||||||
run: pnpm install --frozen-lockfile
|
with:
|
||||||
- name: Package
|
version: 7
|
||||||
run: |
|
- name: Bump version
|
||||||
pnpm version patch --commit-hooks false --git-tag-version false
|
run: pnpm version patch --commit-hooks false --git-tag-version false
|
||||||
pnpm package
|
|
||||||
- name: Publish
|
|
||||||
run: pnpm publish --no-git-checks --tag alpha
|
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
- uses: EndBug/add-and-commit@v9
|
- uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
message: 'Bump package version [skip ci]'
|
message: 'Bump package version [skip ci]'
|
||||||
default_author: github_actions
|
default_author: github_actions
|
||||||
|
- name: Remove svelte.config.js # prevents `svelte-kit sync` from running
|
||||||
|
run: rm svelte.config.js
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install --frozen-lockfile
|
||||||
|
- name: Package
|
||||||
|
run: pnpm package
|
||||||
|
- name: Publish
|
||||||
|
run: pnpm publish --no-git-checks --tag alpha
|
||||||
|
env:
|
||||||
|
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user