Skip to content

Commit

Permalink
chore(terra-draw): add release actions for all adapters (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner authored Jan 12, 2025
1 parent 9208d9c commit 890e908
Show file tree
Hide file tree
Showing 14 changed files with 555 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/terra-draw-arcgis-adapter-dry-run-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: terra-draw-arcgis-adapter Dry-run Release

permissions:
contents: write

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.TERRA_DRAW_PAT }}

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

- name: Install
run: npm ci

- name: Update Docs
run: npm run docs

- name: Run build
working-directory: ./packages/terra-draw-arcgis-adapter
run: npm run build

- name: Set git credentials
run: |
git config --global user.email "[email protected]"
git config --global user.name "James Milner"
- name: Release
working-directory: ./packages/terra-draw-arcgis-adapter
run: npm run release:dryrun

51 changes: 51 additions & 0 deletions .github/workflows/terra-draw-arcgis-adapter-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: terra-draw-arcgis-adapter Release

permissions:
contents: write

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.TERRA_DRAW_PAT }}

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

- name: Install
run: npm ci

- name: Update Docs
run: npm run docs

- name: Run build
working-directory: ./packages/terra-draw-arcgis-adapter
run: npm run build

- name: Set git credentials
run: |
git config --global user.email "[email protected]"
git config --global user.name "James Milner"
- name: Release
working-directory: ./packages/terra-draw-arcgis-adapter
run: npm run release

- name: Push upstream
run: git push origin main

- name: Push tags upstream
run: git push origin main --tags

- run: npm publish
working-directory: ./packages/terra-draw-arcgis-adapter
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: terra-draw-google-maps-adapter Dry-run Release

permissions:
contents: write

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.TERRA_DRAW_PAT }}

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

- name: Install
run: npm ci

- name: Update Docs
run: npm run docs

- name: Run build
working-directory: ./packages/terra-draw-google-maps-adapter
run: npm run build

- name: Set git credentials
run: |
git config --global user.email "[email protected]"
git config --global user.name "James Milner"
- name: Release
working-directory: ./packages/terra-draw-google-maps-adapter
run: npm run release:dryrun

51 changes: 51 additions & 0 deletions .github/workflows/terra-draw-google-maps-adapter-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: terra-draw-google-maps-adapter Release

permissions:
contents: write

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.TERRA_DRAW_PAT }}

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

- name: Install
run: npm ci

- name: Update Docs
run: npm run docs

- name: Run build
working-directory: ./packages/terra-draw-google-maps-adapter
run: npm run build

- name: Set git credentials
run: |
git config --global user.email "[email protected]"
git config --global user.name "James Milner"
- name: Release
working-directory: ./packages/terra-draw-google-maps-adapter
run: npm run release

- name: Push upstream
run: git push origin main

- name: Push tags upstream
run: git push origin main --tags

- run: npm publish
working-directory: ./packages/terra-draw-google-maps-adapter
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41 changes: 41 additions & 0 deletions .github/workflows/terra-draw-leaflet-adapter-dry-run-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: terra-draw-leaflet-adapter Dry-run Release

permissions:
contents: write

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.TERRA_DRAW_PAT }}

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

- name: Install
run: npm ci

- name: Update Docs
run: npm run docs

- name: Run build
working-directory: ./packages/terra-draw-leaflet-adapter
run: npm run build

- name: Set git credentials
run: |
git config --global user.email "[email protected]"
git config --global user.name "James Milner"
- name: Release
working-directory: ./packages/terra-draw-leaflet-adapter
run: npm run release:dryrun

51 changes: 51 additions & 0 deletions .github/workflows/terra-draw-leaflet-adapter-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: terra-draw-leaflet-adapter Release

permissions:
contents: write

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.TERRA_DRAW_PAT }}

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

- name: Install
run: npm ci

- name: Update Docs
run: npm run docs

- name: Run build
working-directory: ./packages/terra-draw-leaflet-adapter
run: npm run build

- name: Set git credentials
run: |
git config --global user.email "[email protected]"
git config --global user.name "James Milner"
- name: Release
working-directory: ./packages/terra-draw-leaflet-adapter
run: npm run release

- name: Push upstream
run: git push origin main

- name: Push tags upstream
run: git push origin main --tags

- run: npm publish
working-directory: ./packages/terra-draw-leaflet-adapter
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41 changes: 41 additions & 0 deletions .github/workflows/terra-draw-mapbox-gl-adapter-dry-run-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: terra-draw-mapbox-gl-adapter Dry-run Release

permissions:
contents: write

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.TERRA_DRAW_PAT }}

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

- name: Install
run: npm ci

- name: Update Docs
run: npm run docs

- name: Run build
working-directory: ./packages/terra-draw-mapbox-gl-adapter
run: npm run build

- name: Set git credentials
run: |
git config --global user.email "[email protected]"
git config --global user.name "James Milner"
- name: Release
working-directory: ./packages/terra-draw-mapbox-gl-adapter
run: npm run release:dryrun

51 changes: 51 additions & 0 deletions .github/workflows/terra-draw-mapbox-gl-adapter-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: terra-draw-mapbox-gl-adapter Release

permissions:
contents: write

on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.TERRA_DRAW_PAT }}

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

- name: Install
run: npm ci

- name: Update Docs
run: npm run docs

- name: Run build
working-directory: ./packages/terra-draw-mapbox-gl-adapter
run: npm run build

- name: Set git credentials
run: |
git config --global user.email "[email protected]"
git config --global user.name "James Milner"
- name: Release
working-directory: ./packages/terra-draw-mapbox-gl-adapter
run: npm run release

- name: Push upstream
run: git push origin main

- name: Push tags upstream
run: git push origin main --tags

- run: npm publish
working-directory: ./packages/terra-draw-mapbox-gl-adapter
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 890e908

Please sign in to comment.