Skip to content

Commit

Permalink
switch to npm registry for brdgm-commons dependency
Browse files Browse the repository at this point in the history
update github actions
  • Loading branch information
stefanseifert committed May 1, 2024
1 parent c099d83 commit 1bfff5f
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 51 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ jobs:
SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Read properties from package.json
id: package_json
uses: zoexx/github-action-json-file-properties@1.0.4
uses: zoexx/github-action-json-file-properties@1.0.6
with:
file_path: package.json

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- run: npm install
- run: npm ci
- run: npm run lint
- run: npm run test:coverage
- run: npm run build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ jobs:
url: "https://brdgm.me/${{ steps.package_json.outputs.appDeployName }}"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Read properties from package.json
id: package_json
uses: zoexx/github-action-json-file-properties@1.0.4
uses: zoexx/github-action-json-file-properties@1.0.6
with:
file_path: package.json

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- run: npm install
- run: npm ci
- run: npm run test:unit
- run: npm run build

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-from-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"generate-pwa-assets": "pwa-assets-generator"
},
"dependencies": {
"@brdgm/brdgm-commons": "^1.6.4",
"@popperjs/core": "~2.11.8",
"bootstrap": "~5.3.3",
"brdgm-commons": "github:brdgm/brdgm-commons#1.6.2",
"core-js": "~3.37.0",
"lodash": "~4.17.21",
"pinia": "^2.1.7",
Expand Down
12 changes: 6 additions & 6 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
import { defineComponent, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import { useStateStore } from '@/store/state'
import AppHeader from 'brdgm-commons/src/components/structure/AppHeader.vue'
import AppFooter from 'brdgm-commons/src/components/structure/AppFooter.vue'
import ModalDialog from 'brdgm-commons/src/components/structure/ModalDialog.vue'
import getErrorMessage from 'brdgm-commons/src/util/error/getErrorMessage'
import showModal, { showModalIfExist } from 'brdgm-commons/src/util/modal/showModal'
import AppHeader from '@brdgm/brdgm-commons/src/components/structure/AppHeader.vue'
import AppFooter from '@brdgm/brdgm-commons/src/components/structure/AppFooter.vue'
import ModalDialog from '@brdgm/brdgm-commons/src/components/structure/ModalDialog.vue'
import getErrorMessage from '@brdgm/brdgm-commons/src/util/error/getErrorMessage'
import showModal, { showModalIfExist } from '@brdgm/brdgm-commons/src/util/modal/showModal'
import { version, description } from '@/../package.json'
import { registerSW } from 'virtual:pwa-register'
import onRegisteredSWCheckForUpdate from 'brdgm-commons/src/util/serviceWorker/onRegisteredSWCheckForUpdate'
import onRegisteredSWCheckForUpdate from '@brdgm/brdgm-commons/src/util/serviceWorker/onRegisteredSWCheckForUpdate'
export default defineComponent({
name: 'App',
Expand Down
2 changes: 1 addition & 1 deletion src/components/structure/FooterButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import { useStateStore } from '@/store/state'
import CommonsFooterButtons from 'brdgm-commons/src/components/structure/FooterButtons.vue'
import CommonsFooterButtons from '@brdgm/brdgm-commons/src/components/structure/FooterButtons.vue'
export default defineComponent({
name: 'FooterButtons',
Expand Down
4 changes: 2 additions & 2 deletions src/components/turn/BotGainBonusModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import AppIcon from '../structure/AppIcon.vue'
import enableTabLinksInContent from 'brdgm-commons/src/util/tab/enableTabLinksInContent'
import ModalDialog from 'brdgm-commons/src/components/structure/ModalDialog.vue'
import enableTabLinksInContent from '@brdgm/brdgm-commons/src/util/tab/enableTabLinksInContent'
import ModalDialog from '@brdgm/brdgm-commons/src/components/structure/ModalDialog.vue'
export default defineComponent({
name: 'BotGainBonusModal',
Expand Down
4 changes: 2 additions & 2 deletions src/components/turn/BuildRoadUpgradeLinkModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import enableTabLinksInContent from 'brdgm-commons/src/util/tab/enableTabLinksInContent'
import ModalDialog from 'brdgm-commons/src/components/structure/ModalDialog.vue'
import enableTabLinksInContent from '@brdgm/brdgm-commons/src/util/tab/enableTabLinksInContent'
import ModalDialog from '@brdgm/brdgm-commons/src/components/structure/ModalDialog.vue'
import Expansion from '@/services/enum/Expansion'
import { useStateStore } from '@/store/state'
import AppIcon from '../structure/AppIcon.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/components/turn/BuildServiceStationModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import ModalDialog from 'brdgm-commons/src/components/structure/ModalDialog.vue'
import ModalDialog from '@brdgm/brdgm-commons/src/components/structure/ModalDialog.vue'
import { useStateStore } from '@/store/state'
import Expansion from '@/services/enum/Expansion'
Expand Down
2 changes: 1 addition & 1 deletion src/components/turn/LoadTruckModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import ModalDialog from 'brdgm-commons/src/components/structure/ModalDialog.vue'
import ModalDialog from '@brdgm/brdgm-commons/src/components/structure/ModalDialog.vue'
import { useStateStore } from '@/store/state'
import Expansion from '@/services/enum/Expansion'
Expand Down
2 changes: 1 addition & 1 deletion src/components/turn/MoveTruckModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import ModalDialog from 'brdgm-commons/src/components/structure/ModalDialog.vue'
import ModalDialog from '@brdgm/brdgm-commons/src/components/structure/ModalDialog.vue'
export default defineComponent({
name: 'MoveTruckModal',
Expand Down
2 changes: 1 addition & 1 deletion src/components/turn/TakeAdvancedCardModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import ModalDialog from 'brdgm-commons/src/components/structure/ModalDialog.vue'
import ModalDialog from '@brdgm/brdgm-commons/src/components/structure/ModalDialog.vue'
import TaskCardDeck from '@/services/TaskCardDeck'
export default defineComponent({
Expand Down
2 changes: 1 addition & 1 deletion src/components/turn/TakeColorCardModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<script lang="ts">
import { defineComponent } from 'vue'
import { useI18n } from 'vue-i18n'
import ModalDialog from 'brdgm-commons/src/components/structure/ModalDialog.vue'
import ModalDialog from '@brdgm/brdgm-commons/src/components/structure/ModalDialog.vue'
import AutobahnColor from '@/services/enum/AutobahnColor'
import getAutobahnColorCode from '@/util/getAutobahnColorCode'
import AppIcon from '../structure/AppIcon.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RouteRecordRaw } from 'vue-router'
import createRouterMatomoTracking from 'brdgm-commons/src/util/router/createRouterMatomoTracking'
import createRouterMatomoTracking from '@brdgm/brdgm-commons/src/util/router/createRouterMatomoTracking'
import { name, version, appDeployName } from '@/../package.json'
import AppHome from '@/views/AppHome.vue'
import NotFound from '@/views/NotFound.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/services/TaskCards.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import findMandatory from 'brdgm-commons/src/util/map/findMandatory'
import findMandatory from '@brdgm/brdgm-commons/src/util/map/findMandatory'
import Action from './enum/Action'
import BonusAction from './enum/BonusAction'
import TaskCardLevel from './enum/TaskCardLevel'
Expand Down
2 changes: 1 addition & 1 deletion src/store/state.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import DifficultyLevel from '@/services/enum/DifficultyLevel'
import Expansion from '@/services/enum/Expansion'
import { defineStore } from 'pinia'
import toggleArrayItem from 'brdgm-commons/src/util/array/toggleArrayItem'
import toggleArrayItem from '@brdgm/brdgm-commons/src/util/array/toggleArrayItem'
import ColorCard from '@/services/ColorCard'
import Player from '@/services/enum/Player'
import Era from '@/services/enum/Era'
Expand Down

0 comments on commit 1bfff5f

Please sign in to comment.