Skip to content

Commit

Permalink
Use nextVersion tag instead of latest
Browse files Browse the repository at this point in the history
  • Loading branch information
codykaup committed Oct 17, 2024
1 parent aa68778 commit 0965cc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/smoke-test-action-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Run build against action-next
uses: chromaui/action-next@latest
# `yarn run release-next` writes the `nextVersion` to the action output
uses: chromaui/action-next@${{ steps.vars.outputs.nextVersion }}
with:
buildScriptName: build-test-storybook
exitZeroOnChanges: true
Expand Down
7 changes: 6 additions & 1 deletion scripts/releaseNext.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node

import fs from 'node:fs';

import { $ } from 'execa';

import { main as publishAction } from './publishAction.mjs';
Expand All @@ -11,8 +13,11 @@ async function main() {
return;
}

await build();
const nextVersion = await build();
await publishAction('next');

// eslint-disable-next-line security/detect-non-literal-fs-filename
fs.appendFileSync(process.env.GITHUB_OUTPUT, `nextVersion=${nextVersion}\n`);
}

async function build() {
Expand Down

0 comments on commit 0965cc5

Please sign in to comment.