Skip to content

Release v0.3.5 #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .github/workflows/build.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Create Tag

on:
workflow_run:
workflows: ["Package Library"]
types:
- completed
branches:
- main

jobs:
push-git-tag:
if: ${{ github.event.workflow_run.conclusion == 'success' && contains(github.event.workflow_run.head_branch, 'release') }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Extract version from branch name
id: version
run: |
BRANCH_NAME="${{ github.event.workflow_run.head_branch }}"
VERSION=${BRANCH_NAME#release-v}
VERSION=${VERSION#release/}
VERSION=${VERSION#release-}
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Create tag
run: |
git tag "v${{ steps.version.outputs.version }}" -m "Release v${{ steps.version.outputs.version }}"
git push origin "v${{ steps.version.outputs.version }}"
37 changes: 37 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Draft Release Branch

on:
workflow_dispatch:
inputs:
bump_type:
description: 'Type of version bump (major, minor, patch)'
required: true
type: choice
options:
- major
- minor
- patch

jobs:
draft-release-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Make scripts executable
run: |
chmod +x scripts/release/draft-release
chmod +x scripts/release/update-changelog

- name: Run release script
run: ./scripts/release/draft-release "${{ github.event.inputs.bump_type }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43 changes: 43 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Package Library

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm run test

- name: Build
run: npm run build

- name: Upload artifacts
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, 'Merge pull request') && contains(github.event.head_commit.message, 'release')
uses: actions/upload-artifact@v4
with:
name: ${{ github.ref_name }}
path: dist/
retention-days: 90
66 changes: 66 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Publish Release

on:
push:
tags:
- 'v*'

jobs:
check_for_moratorium:
runs-on: ubuntu-latest
environment: change_management
steps:
- uses: actions/checkout@v4
- env:
TPS_API_TOKEN: ${{ secrets.TPS_API_TOKEN_PARAM }}
run: ./scripts/release/tps-check-lock heroku-applink-nodejs ${{ github.sha }}

publish:
runs-on: ubuntu-latest
environment: change_management
permissions:
contents: write
id-token: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: ${{ github.ref_name }}
path: .

- name: Install dependencies
run: npm ci

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
dist/**/*
package.json
README.md
CHANGELOG.md
LICENSE.txt
SECURITY.md
TERMS_OF_USE.md

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_AUTOMATION_TOKEN }}

- name: Publish To Change Management
env:
ACTOR_EMAIL: ${{ secrets.TPS_API_RELEASE_ACTOR_EMAIL }}
TPS_API_TOKEN: ${{ secrets.TPS_API_TOKEN_PARAM }}
run: ./scripts/release/tps-record-release heroku-applink-nodejs ${{ github.sha }}
49 changes: 43 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,49 @@
# Changelog

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.3.5](https://github.com/heroku/heroku-applink-nodejs/compare/HEAD...0.3.5) - 2025-05-19


### Changes


### Features

* add es module interop to fix some bad imports in tests ([15dcd9f](https://github.com/heroku/heroku-applink-nodejs/commit/15dcd9f46ab2fe772b007923b901562c00454bda))
* add cross env to fix cross platform testing ([d610aaa](https://github.com/heroku/heroku-applink-nodejs/commit/d610aaaddddb6ec05ee5f71e62836cd2e28c5e0b))

### Fixes

* fix bad import ([8485a5b](https://github.com/heroku/heroku-applink-nodejs/commit/8485a5b022123705a5cf4c0b818e68b08e9bad37))
* fix tests but with commonjs ([8203663](https://github.com/heroku/heroku-applink-nodejs/commit/8203663fec15578330dfda5a598cee01b7948416))

### Other

* bump version to v0.3.5 ([ef0aa07](https://github.com/heroku/heroku-applink-nodejs/commit/ef0aa07c336b81661aed075ee997b91d9ad3f9a4))
* may not have previous tag ([a0bb06e](https://github.com/heroku/heroku-applink-nodejs/commit/a0bb06e826eca2de2cd93f38158ecdb1350c61e9))
* updating versions to match in changelog and package.json ([0d56f0d](https://github.com/heroku/heroku-applink-nodejs/commit/0d56f0d2f9884991d6582920e0a5bc1aee71a3b2))
* wrong order ([9a9c4ce](https://github.com/heroku/heroku-applink-nodejs/commit/9a9c4cee932a4e15b30077b57e158a35c38c3d12))
* initial release automation setup ([1ca593f](https://github.com/heroku/heroku-applink-nodejs/commit/1ca593fdb32df921f877146622c93a83062a6b65))
* maint: update CODEOWNERS ([fb2400b](https://github.com/heroku/heroku-applink-nodejs/commit/fb2400bc788022dfd0fd2aae8d0590c3fe0f4768))
* don't use v24 ([be6fb45](https://github.com/heroku/heroku-applink-nodejs/commit/be6fb45591f6c3c487b3ef645efa1a8ccf1886e1))
* clean up test matrix ([2e1e787](https://github.com/heroku/heroku-applink-nodejs/commit/2e1e787125baa465731c47907f750ef5bf274490))
* skip failing tests ([6090c29](https://github.com/heroku/heroku-applink-nodejs/commit/6090c2973d9e490b76ffdb873cc96e0ee470ce5e))
* clean up script ([9876a52](https://github.com/heroku/heroku-applink-nodejs/commit/9876a527fd1d20bb005a0299bbd686ea1365a08a))
* prettier ([788a23d](https://github.com/heroku/heroku-applink-nodejs/commit/788a23d69d57b82ca6ff01c75bdaeeced4afb7b6))
* prettier ([bb4dbd7](https://github.com/heroku/heroku-applink-nodejs/commit/bb4dbd758742dc5fa9d4e53fa98ffac3e92fc4c5))
* get tests running ([6eb4f11](https://github.com/heroku/heroku-applink-nodejs/commit/6eb4f11e7f10990c2abc631fc3d4301ff8f9ca92))
* Sdk docs update (#18) ([#18](https://github.com/heroku/heroku-applink-nodejs/pull/18)) ([a134eb3](https://github.com/heroku/heroku-applink-nodejs/commit/a134eb3dc1918e1d0f7c84f01910f3fe30ca41bf))
* Rename things to Applink ([6a8ea2f](https://github.com/heroku/heroku-applink-nodejs/commit/6a8ea2fde12302870724512950e7567417002ca3))
* Initial ([6bdadea](https://github.com/heroku/heroku-applink-nodejs/commit/6bdadea1b091b60b2916e9d6bebf26ff353a089a))
* Initial commit ([e1d9c9d](https://github.com/heroku/heroku-applink-nodejs/commit/e1d9c9d149b3b4276784655387afa49c24cdcd8e))

# [0.3.4-ea] - 2024-03-21

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased
- Update CODEOWNERS
### Changes

## [0.1.0-ea] - 2024-08-12
### Features
* Initial release ([c5d593f](https://github.com/heroku/heroku-applink-nodejs/commit/c5d593fa3c0f37607239e3ded7c2c24d7354383c))

- Initial
44 changes: 0 additions & 44 deletions bin/bump-version.js

This file was deleted.

9 changes: 0 additions & 9 deletions bin/publish.sh

This file was deleted.

Loading
Loading