Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Validate
run: pnpm check

- name: Configure npm trusted publishing
- name: Configure npm registry
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: package.json
Expand All @@ -42,4 +42,4 @@ jobs:

- name: Publish with provenance
working-directory: packages/analytics
run: npm publish --access public
run: pnpm publish --access public --no-git-checks
4 changes: 2 additions & 2 deletions packages/analytics/tests/publishing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ test('publishes from the canonical repository through npm trusted publishing', a
type: 'git',
url: 'git+https://github.com/LasVegasForTransit/analytics.git',
});
expect(workflow).toContain('npm publish --access public');
expect(workflow).not.toContain('pnpm publish');
expect(workflow).toContain('pnpm publish --access public --no-git-checks');
expect(workflow).not.toMatch(/(^|\s)npm publish/);
expect(workflow).not.toContain('NODE_AUTH_TOKEN');
expect(packageJson.version).toBe('0.1.0');
expect(VERSION).toBe(packageJson.version);
Expand Down
Loading