Skip to content

Commit

Permalink
Fix publishing to NPM in the release CI (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-f authored Dec 22, 2020
1 parent 1e6e6d6 commit a4d39c2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,17 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
- name: Prepare publish
node-version: 14
- name: Publish to NPM
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
sed -e "s/NPM_VERSION/$(./scripts/get-version)/g" -i npm/package.json
sed -e "s/PACKAGE_VERSION/$(./scripts/get-version)/g" -i npm/install.js
cd npm
cp ../README.md ./README.md
cp ../CONTRIBUTING.md ./CONTRIBUTING.md
cp ../LICENSE ./LICENSE
- name: Publish to NPM
uses: pascalgn/npm-publish-action@1.3
with:
workspace: "npm"
publish_args: "--non-interactive"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
npm publish --non-interactive
11 changes: 6 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Add `exec-args` as alias to `node-args`, to clarify that the args are
forwarded to whichever backend is being targeted (go, js, etc), not
exclusively node.

## [0.18.0] - 2020-12-07
## [0.18.0] - 2020-12-22

Breaking changes (😱!!!):
- **Remove `login` command (#705)**
Expand All @@ -27,6 +23,11 @@ Breaking changes (😱!!!):
While the upstream package sets have been patched to be compatible with the change, this is a breaking change
for all the existing configurations that make use of Dhall reserved words (such as `assert`, `let`, etc).

New features:
- Add `exec-args` as alias to `node-args`, to clarify that the args are
forwarded to whichever backend is being targeted (go, js, etc), not
exclusively NodeJS (#710, #709)

Bugfixes:
- Don't create the global cache folder at all if the user specifies `--global-cache=skip` (#705, 704)
- Don't require a `spago.dhall` anymore when the `--no-build` flag is passed (#705, 634)
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extra-deps:
- async-pool-0.9.1@sha256:4015140f896c3f1652b06a679b0ade2717d05557970c283ea2c372a71be2a6a1,1605
- base-compat-0.11.1@sha256:e49c1ce84f556621ef1142a169e4349049c516f5b3e3c3ec6830be503e7d4a93,7140
- binary-instances-1.0.0.1@sha256:e234be994da675479a3661f050d4a1d53565c9ed7786d9a68b7a29ba8b54b5a7,2659
- dhall-1.37.0
- dhall-1.37.1
- directory-1.3.6.1@sha256:3dc9c69c8e09ec95a7a45c6d06abe0f0d2f604439c37e5f88e5a6c335b088d71,2810
- generic-lens-2.0.0.0@sha256:7409fa0ce540d0bd41acf596edd1c5d0c0ab1cd1294d514cf19c5c24e8ef2550,3866
- generic-lens-core-2.0.0.0@sha256:40b063c4a1399b3cdb19f2df1fae5a1a82f3313015c7c3e47fc23b8ef1b3e443,2913
Expand Down

0 comments on commit a4d39c2

Please sign in to comment.