Skip to content

Commit

Permalink
Merge pull request #10 from SERVIR/publising/workflow
Browse files Browse the repository at this point in the history
feat: Publishing workflow
  • Loading branch information
deepak-shah-np authored Nov 27, 2024
2 parents 1d1b017 + 19fbb79 commit 5eb4ac4
Show file tree
Hide file tree
Showing 7 changed files with 10,830 additions and 4,924 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/ci.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: lint

on:
push:
Expand All @@ -21,24 +21,9 @@ jobs:

- name: Install dependencies
run: npx nypm@latest i

- name: Dev Prepare
run: npm run dev:prepare

- name: Lint
run: npm run lint

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22.5.1

- name: Install dependencies
run: npx nypm@latest i

- name: Playground prepare
run: npm run dev:prepare


38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release
on:
push:
branches:
- main # Specify your default branch

permissions:
contents: write # Allow writing to the repository for tags and releases
statuses: write
issues: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22.5.1

- name: Install dependencies
run: npm ci

- name: Prepare for development
run: npm run dev:prepare

- name: Prepack the project
run: npm run prepack

- name: Run audit
run: npm audit signatures

- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
Loading

0 comments on commit 5eb4ac4

Please sign in to comment.