Skip to content

Commit 0f5aabe

Browse files
committed
Action changes to move "build" step to "publish"; Added info on how to use feature branches to test.
1 parent 074fac8 commit 0f5aabe

2 files changed

Lines changed: 35 additions & 3 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,44 @@
11
name: publish
22
on:
33
push:
4-
branches: [master, main]
4+
branches: [master, main, enginfs-545300/move-actions]
55
jobs:
6-
tag:
7-
runs-on: ubuntu-latest
6+
publish:
7+
runs-on: ubuntu-22.04
88
timeout-minutes: 5
99
steps:
1010
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: 18
14+
- name: Get yarn cache
15+
id: yarn-cache
16+
run: echo "::set-output name=dir::$(yarn cache dir)"
17+
- name: Cache node modules
18+
uses: actions/cache@v4
19+
with:
20+
path: ${{ steps.yarn-cache.outputs.dir }}
21+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-yarn-
24+
- name: Install
25+
run: yarn --prefer-offline --frozen-lockfile --no-progress --non-interactive
26+
- name: Build
27+
run: yarn build
28+
- name: Package
29+
run: yarn package
30+
- name: Import GPG key
31+
uses: crazy-max/ghaction-import-gpg@e00cb83a68c1158b29afc5217dd0582cada6d172
32+
with:
33+
gpg_private_key: ${{ secrets.NEOBOT_GPG_PRIVATE_KEY }}
34+
git_user_signingkey: true
35+
git_commit_gpgsign: true
36+
- name: Commit latest build artifacts
37+
uses: endbug/add-and-commit@v7
38+
with:
39+
author_name: ${{ secrets.NEOBOT_AUTHOR }}
40+
author_email: ${{ secrets.NEOBOT_AUTHOR_EMAIL }}
41+
signoff: true
1142
- uses: Saionaro/extract-package-version@de8268c348d3a9ed3514c86a9ad8d4568ab8b49e
1243
id: extract_version
1344
- uses: mathieudutour/github-tag-action@d745f2e74aaf1ee82e747b181f7a0967978abee0

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ The memory-server is stopped (and destroyed) subsequent to the completion of thi
4949
### Testing
5050

5151
This repository's CI workflow has a 'validate' job @ `src/validate.ts` (technically, `build/validate.js`) for internal, CI-time testing of the action's functionality; this simply opens and closes a connection to the memory-server to ensure the validity of the provided ENV variable. There are also a small number of unit tests to ensure the memory-server's configuration values are passed to the memory-server appropriately.
52+
If you're looking to reference this action before it's released, make sure to build it and commit the changes manually. This step is automatic once the PR is merged to `master`.
5253

5354
- please try to cover the new capability when making small changes
5455
- as necessary, add validation for variables passed directly to the initialization of the memory-server

0 commit comments

Comments
 (0)