From fed19a39d6e17ec3080b78435073e54ad458db76 Mon Sep 17 00:00:00 2001 From: Neyts Zupan Date: Wed, 7 Feb 2024 11:41:35 +0000 Subject: [PATCH] auto-purge CDN after release --- .github/workflows/ci.yml | 4 +++- package.json | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6afb258..634b8a9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 diff --git a/package.json b/package.json index 7fff4c2..d3c3033 100644 --- a/package.json +++ b/package.json @@ -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"