Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Mar 30, 2021
1 parent 361fd72 commit 0b45b81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/on_release_pull_merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,14 @@ jobs:
const { promisify } = require('util');
const exec = promisify(require('child_process').exec);
// Script to build package
const buildScript = 'build';
const output = (await exec('npm run')).stdout;
const scripts = output.split(/\r?\n/)
.filter(line => line.startsWith(' ') && !line.startsWith(' '))
.map(line => line.trim());
core.setOutput('build', scripts.includes(buildScript) ? buildScript : '');
if (scripts.includes(process.env.BUILD_SCRIPT)) {
core.setOutput('build', process.env.BUILD_SCRIPT);
}
return true;
- name: Set up Node.js
uses: actions/setup-node@v2
Expand Down Expand Up @@ -139,3 +138,5 @@ jobs:
run: |
# github-actions-managed: true
npm publish --access public --verbose
env:
BUILD_SCRIPT: build
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- sync `jobs.*.runs-on` from remote with `--force`
- sync `jobs.*.env` from remote with `--force`
- `[on_push_check.py]` run `pylint`, `flake8`, `pytest`, `mypy`, `pyright` if available

### Fixed
- `[on_push_check.js]` move script names to `env` for easier changing

## [0.3.0]
### Added
Expand Down

0 comments on commit 0b45b81

Please sign in to comment.