Skip to content

Commit

Permalink
Fix lint, update Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
daniluk4000 committed Oct 20, 2023
1 parent c1caa66 commit 425d51c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 20.x
- uses: ./.github/actions/codecheck
publish:
docs-build:
name: Docs build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: install node
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build with VitePress
run: |
yarn docs:build
touch docs/.vitepress/dist/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs/.vitepress/dist
npm-publish:
name: NPM Publish
needs: check
runs-on: ubuntu-latest
steps:
Expand All @@ -35,3 +56,14 @@ jobs:
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
docs-deploy:
name: Docs Deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: docs-build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

<script setup lang="ts">
import {
YandexMap, YandexMapDefaultSchemeLayer, YandexMapControls, YandexMapZoomControl
YandexMap, YandexMapDefaultSchemeLayer, YandexMapControls, YandexMapZoomControl,
} from 'vue-yandex-maps';
import CommonWrapper from '../CommonWrapper.vue';
</script>

0 comments on commit 425d51c

Please sign in to comment.