Skip to content

Commit 93d53b6

Browse files
committed
Testing github workflow beta release (failing test)
1 parent 1e57b5a commit 93d53b6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Publish Release to npm
1+
name: Publish Beta Release to npm
22
on:
33
release:
44
types: [published]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
# if: github.event.release.isPrerelease != true
8+
if: ${{ contains(github.event.release.tag_name, '-beta.') }}
99
permissions:
1010
contents: read
1111
id-token: write
@@ -14,9 +14,10 @@ jobs:
1414
# Setup .npmrc file to publish to npm
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: '20.x'
17+
node-version: "20"
1818
registry-url: 'https://registry.npmjs.org'
1919
- run: npm install
20-
- run: npm publish --provenance --access=public
20+
- run: npm test
21+
- run: npm publish --provenance --access=public --tag=beta
2122
env:
2223
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test('Baseline double quotes', async (t) => {
2424
await waitForStreamClose(create);
2525

2626
assert.ok(fs.existsSync(path));
27-
assert.deepEqual(fs.readFileSync(path, "utf8"), SAMPLE_CONTENT);
27+
assert.notDeepEqual(fs.readFileSync(path, "utf8"), SAMPLE_CONTENT);
2828
});
2929

3030
test('Baseline single quotes', async (t) => {

0 commit comments

Comments
 (0)