Skip to content

Commit bd297a0

Browse files
authored
Merge pull request #33 from atlassian/chore/update-dependencies-and-pipelines
Upgrade dependencies and improve testing for Node and TypeScript
2 parents a6aceeb + eb8af78 commit bd297a0

11 files changed

Lines changed: 258 additions & 270 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
- name: Lint & Format check
3737
run: npm run lint
3838

39-
- name: Unit tests
40-
run: npm run test:coverage
41-
4239
- name: Build
4340
run: npm run build
41+
42+
- name: Unit tests
43+
run: npm run test:coverage

.github/workflows/release.yml

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
name: Release
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
version:
7-
description: "Version bump type"
8-
required: true
9-
type: choice
10-
options:
11-
- patch
12-
- minor
13-
- major
4+
push:
5+
tags:
6+
- "v*"
147

158
jobs:
169
release:
@@ -30,20 +23,6 @@ jobs:
3023
- name: Install dependencies
3124
run: npm ci
3225

33-
- name: Configure git
34-
run: |
35-
git config user.name "github-actions[bot]"
36-
git config user.email "github-actions[bot]@users.noreply.github.com"
37-
38-
- name: Bump version
39-
id: bump
40-
run: |
41-
npm version ${{ inputs.version }} -m "chore: release v%s"
42-
echo "version=$(node -p 'require("./package.json").version')" >> "$GITHUB_OUTPUT"
43-
44-
- name: Push version commit and tag
45-
run: git push --follow-tags
46-
4726
- name: Get Artifact Publish Token
4827
uses: atlassian-labs/artifact-publish-token@v1.0.1
4928
with:
@@ -55,4 +34,4 @@ jobs:
5534
- name: Create GitHub Release
5635
env:
5736
GH_TOKEN: ${{ github.token }}
58-
run: gh release create "v${{ steps.bump.outputs.version }}" --generate-notes
37+
run: gh release create "${{ github.ref_name }}" --generate-notes

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23.10.0
1+
24.14.1

0 commit comments

Comments
 (0)