Skip to content

Commit

Permalink
Merge branch 'main' into fixing_types
Browse files Browse the repository at this point in the history
  • Loading branch information
dbraquart authored Dec 6, 2024
2 parents 133847d + 63c6ad8 commit 93f87ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 43 deletions.
51 changes: 8 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,11 @@ permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Mask Node Auth Token
run: |
NODE_AUTH_TOKEN=$(jq -r '.inputs.nodeAuthToken' $GITHUB_EVENT_PATH)
echo ::add-mask::$NODE_AUTH_TOKEN
echo NODE_AUTH_TOKEN=$NODE_AUTH_TOKEN >> $GITHUB_ENV
- uses: actions/create-github-app-token@v1
id: app-token
name: Generate app token
with:
app-id: ${{ vars.POWSYBL_ACTIONS_APPID }}
private-key: ${{ secrets.POWSYBL_ACTIONS_SECRET }}

- name: Checkout sources
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}

- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Add release commit and publish
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
npm version ${{ github.event.inputs.versionType }}
git push origin main
git push origin $(git tag --points-at HEAD)
npm install
npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ env.NODE_AUTH_TOKEN }}

- name: Create GitHub release
run: |
gh release create $(git tag --points-at HEAD) --generate-notes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run-release:
uses: powsybl/github-ci/.github/workflows/release-frontend-lib-generic.yml@859a4effdaa9c5e79684378f39778fd8d06df3c5
with:
versionType: ${{ github.event.inputs.versionType }}
nodeAuthToken: ${{ github.event.inputs.nodeAuthToken }}
githubappId: ${{ vars.POWSYBL_ACTIONS_APPID }}
secrets:
githubappPrivateKey: ${{ secrets.POWSYBL_ACTIONS_SECRET }}
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export default defineConfig((config) => ({
'@luma.gl/constants': 'LumaGlConstants',
'@luma.gl/core': 'LumaGlCore',
'@svgdotjs/svg.js': 'SvgJs',
'@mapbox/mapbox-gl-draw': 'MapboxGlDraw',
'@turf/boolean-point-in-polygon': 'BooleanPointInPolygon',
},
},
},
Expand Down

0 comments on commit 93f87ae

Please sign in to comment.