Skip to content

Commit

Permalink
IT-201 Change publish registry to private MapTiler NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
DianaMikitova committed May 28, 2024
1 parent 8429140 commit 3cc37b5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release NPM private package

on:
#release:
# types: [ created ]
push:
branches: [ IT-201_publish-to-maptiler-npm ]

jobs:
release:
name: Release new version
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'latest'

- name: Configure MapTiler NPM registry
run: npm config set //npm.maptiler.dev/:_authToken "${{ secrets.NPM_MAPTILER_TOKEN }}"

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build

- name: Publish package to MapTiler NPM
run: npm publish
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"publishConfig": {
"access": "restricted",
"registry": "https://npm.pkg.github.com/maptiler"
"registry": "https://npm.maptiler.dev/"
},
"peerDependencies": {
"bootstrap": "^5.0.2"
Expand Down

0 comments on commit 3cc37b5

Please sign in to comment.