Skip to content

Commit

Permalink
auto-purge CDN after release
Browse files Browse the repository at this point in the history
  • Loading branch information
zupo committed Feb 7, 2024
1 parent 65f71e3 commit fed19a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
cache: niteo-public
auth_token: '${{ secrets.CACHIX_AUTH_TOKEN_PUBLIC }}'


- name: Create .npmrc file to publish to npm
uses: actions/setup-node@v3
with:
Expand All @@ -66,3 +65,6 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: nix-shell --run "npm version --no-git-tag-version prerelease --preid $(date +%Y-%m-%dT%H-%M-%S) && make dist && npm publish" # yamllint disable-line

- name: Purge jsdeliver cache
run: https://purge.jsdelivr.net/npm/salarycalc@latest/dist/salary-calculator.js
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "salary-calculator",
"version": "0.1.0",
"version": "0.1.1",
"description": "Elm engine running the Niteo Salary Calculator",
"scripts": {
"build": "make dist",
"test": "make test"
},
"files": [
"dist/"
],
"repository": {
"type": "git",
"url": "https://github.com/teamniteo/salarycalc.git"
Expand Down

0 comments on commit fed19a3

Please sign in to comment.