Skip to content

1.6.5

1.6.5 #48

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-20.04
timeout-minutes: 15
environment: main
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/[email protected]
id: yarn-cache
with:
path: |
node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --prefer-offline --frozen-lockfile
env:
ADBLOCK: true
- name: Build
run: yarn build
- name: Build test bundle
run: yarn build:test
- name: Test on BrowserStack
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
run: yarn test:browserstack
- name: Authenticate npm
run: |
npm config set @fingerprintjs:registry https://registry.npmjs.org/
npm config set -- '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_AUTH_TOKEN }}"
- name: Publish
run: |
yarn publish --non-interactive --access=public