Skip to content

Commit

Permalink
fix: clean-up tarball folder for github release
Browse files Browse the repository at this point in the history
  • Loading branch information
haifeng-li-at-salesforce committed Jun 18, 2024
1 parent 80f43c6 commit 5078272
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,6 @@ jobs:

- run: npm run build

- run: npm pack

- name: get tarball name
id: get_tarball_name
uses: actions/github-script@v7
with:
script: |
const packageJson = require('./package.json');
const packageVersion = packageJson.version;
const convertedName = packageJson.name.replace(/@/, "").replace(/\//,"-");
return `${convertedName}-${packageVersion}.tgz`;
- name: set up env
run: |
mv ${{steps.get_tarball_name.outputs.result}} eslint-plugin-lwc-mobile.tgz
- name: Release
run: npx semantic-release
env:
Expand Down
4 changes: 1 addition & 3 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ plugins:
- npmPublish: false # skip push tarball to npmjs.com
tarballDir: 'tarball'
- - '@semantic-release/github'
- assets:
- path: 'tarball/*'
label: 'Tarball distribution'
- assets: 'tarball/*.tgz'

debug: true
dryRun: false

0 comments on commit 5078272

Please sign in to comment.