Skip to content

Commit

Permalink
upgrade mapbox
Browse files Browse the repository at this point in the history
  • Loading branch information
antony committed Nov 11, 2024
1 parent 1886b3d commit d479ea6
Show file tree
Hide file tree
Showing 7 changed files with 1,355 additions and 947 deletions.
58 changes: 31 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,46 @@ on:
- '*'
tags:
- 'v*'
pull_request:
branches:
- '*'

env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- name: checkout
uses: actions/checkout@v4

- uses: volta-cli/action@v1
- name: authorise pnpm
run: |
pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
corepack enable
- uses: pnpm/[email protected]
with:
version: latest
run_install: true
- name: install dependencies
run: pnpm install

- run: pnpm lint
- name: test
run: pnpm test

publish-npm:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master

- uses: volta-cli/action@v1

- uses: pnpm/[email protected]
with:
version: latest
run_install: true

- run: pnpm build
- run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
pnpm package
pnpm publish ./package
- name: checkout
uses: actions/checkout@v4

- name: authorise pnpm
run: |
pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
corepack enable
- name: install dependencies
run: pnpm install

- name: publish
run: pnpm publish --access public
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
engine-strict=true
use-node-version=22.11.0
25 changes: 11 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,27 @@
"scripts": {
"dev": "vite dev --port 3030",
"build": "vite build",
"package": "svelte-package",
"preview": "vite preview",
"lint": "eslint ."
},
"devDependencies": {
"@beyonk/eslint-config": "^6.0.0",
"@sveltejs/kit": "^1.2.9",
"@sveltejs/package": "^1.0.2",
"eslint": "^7.31.0",
"eslint-plugin-svelte3": "^3.2.0",
"svelte": "^3.55.1",
"svelte2tsx": "^0.6.0",
"typescript": "^4.9.4",
"vite": "^4.0.4"
"@beyonk/eslint-config": "^8.0.2",
"@sveltejs/kit": "^2.8.0",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"eslint": "^9.14.0",
"eslint-plugin-svelte": "^2.46.0",
"svelte": "^5.1.14",
"svelte2tsx": "^0.7.23",
"typescript": "^5.6.3",
"vite": "^5.4.11"
},
"peerDependencies": {
"svelte": ">=3.0.0"
"svelte": ">=4.0.0"
},
"exports": {
".": "./components.js"
},
"types": "./components.d.ts",
"type": "module",
"volta": {
"node": "20.11.1"
}
"packageManager": "[email protected]"
}
Loading

0 comments on commit d479ea6

Please sign in to comment.