Skip to content

Commit

Permalink
Fix github action config
Browse files Browse the repository at this point in the history
  • Loading branch information
ka7eh committed Jan 24, 2025
1 parent 4bb35ac commit 8968cf4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm i
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npx gh-pages -u "github-actions-bot <[email protected]>" -s "{README.md,example.html,lib/*}" -d .
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm publish --provenance
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"description": "Basemaps Control for MapLibre GL",
"author": "Kaveh Karimi <[email protected]>",
"homepage": "https://github.com/ka7eh/maplibre-gl-basemaps",
"repository": "https://github.com/ka7eh/maplibre-gl-basemaps",
"repository": {
"type": "git",
"url": "git+https://github.com/ka7eh/maplibre-gl-basemaps.git"
},
"keywords": [
"maplibre-gl",
"mapbox-gl",
Expand Down

0 comments on commit 8968cf4

Please sign in to comment.