Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix npm publish #5523

Merged
merged 3 commits into from
Feb 13, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
- run: ls -al
- run: buildtools/set-version

- run: echo "//registry.npmjs.org/:_authToken=$(gopass gs/ci/npm/token)" > ~/.npmrc

# Lint
- run: make lint
- run: make spell
Expand All @@ -61,6 +59,8 @@ jobs:
ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
github-gopass-ci-token: ${{secrets.GITHUB_GOPASS_CI_TOKEN}}
if: github.repository == 'camptocamp/ngeo'
- run: echo "//registry.npmjs.org/:_authToken=$(gopass gs/ci/npm/token)" > ~/.npmrc
if: github.repository == 'camptocamp/ngeo'
- name: Build ~/.transifexrc
run: |
summon --yaml '
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/clean-ghpages.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---

name: Clean docker hub tags
name: Clean GitHub pages

on:
delete

jobs:
clean:
runs-on: ubuntu-18.04
name: Clean docker hub tags
name: Clean GitHub pages
timeout-minutes: 5

steps:
Expand All @@ -19,7 +19,10 @@ jobs:
run: |
git config --global user.name "Continuous integration"
git config --global user.email "ci@comptocamp.org"
git rm -r $(cat ${GITHUB_EVENT_PATH}|jq --raw-output .ref)
git commit --amend -m "Clean branch $(cat ${GITHUB_EVENT_PATH}|jq --raw-output .ref)"
remote_repo="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/camptocamp/ngeo.git"
git push "${remote_repo}" gh-pages --force
if [ -d $(cat ${GITHUB_EVENT_PATH}|jq --raw-output .ref) ]
then
git rm -r $(cat ${GITHUB_EVENT_PATH}|jq --raw-output .ref)
git commit --amend -m "Clean branch $(cat ${GITHUB_EVENT_PATH}|jq --raw-output .ref)"
remote_repo="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/camptocamp/ngeo.git"
git push "${remote_repo}" gh-pages --force
fi