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
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to npm (Trusted Publisher)
run: npm publish --provenance --access public

Comment on lines +42 to +44
- name: Build Static Asset
run: npm run build-static

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"require": "./dist/cast-ui.umd.js"
}
},
"publishConfig": {
"provenance": true
},
"sideEffects": [
"**/*.css"
],
Expand Down Expand Up @@ -98,4 +101,4 @@
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}
2 changes: 1 addition & 1 deletion release.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const branch = process.env.BRANCH_NAME;

Check warning on line 1 in release.config.cjs

View workflow job for this annotation

GitHub Actions / Build Pages Artifact

'process' is not defined

const config = {
branches: [
Expand All @@ -9,7 +9,7 @@
plugins: [
'commit-analyzer-fail-on-no-release',
'@semantic-release/release-notes-generator',
'@semantic-release/npm',
['@semantic-release/npm', { npmPublish: false }],
'@semantic-release/github',
],
};
Expand All @@ -36,4 +36,4 @@
);
}

module.exports = config;

Check warning on line 39 in release.config.cjs

View workflow job for this annotation

GitHub Actions / Build Pages Artifact

'module' is not defined
Loading