Skip to content

Commit

Permalink
Try to make publish action work #1.
Browse files Browse the repository at this point in the history
  • Loading branch information
somespecialone committed Oct 17, 2023
1 parent fb7dba4 commit 94a71da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -38,17 +39,14 @@ jobs:
with:
path: docs/.vitepress/dist

timeout-minutes: 10

deploy:
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

timeout-minutes: 10
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,21 @@ on:
jobs:
main:
runs-on: ubuntu-latest
defaults:
run:
working-directory: lib
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
registry-url: '//registry.npmjs.org/'
- run: pnpm install

- name: Build lib
run: pnpm lib:build
run: pnpm --filter "vuecomotive-scroll" lib:build

- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
run: pnpm publish --access public --no-git-checks

timeout-minutes: 10
run: pnpm publish lib --no-git-checks

0 comments on commit 94a71da

Please sign in to comment.