Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

build(deps): bump crypto-js from 4.1.1 to 4.2.0 #69

build(deps): bump crypto-js from 4.1.1 to 4.2.0

build(deps): bump crypto-js from 4.1.1 to 4.2.0 #69

Workflow file for this run

name: Pre-Release
on:
pull_request:
types:
- labeled
permissions:
contents: "write"
id-token: "write"
jobs:
pre-release:
if: ${{ github.event.label.name == 'alpha' }}
environment: alpha
name: Prepare Alpha Pre-release
runs-on: ubuntu-latest
outputs:
released: ${{ steps.release-please.outputs.release_created }}
pr_number: ${{ steps.echo-pr.outputs.pr_number }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- run: |
npm ci
SHORT_SHA="$(git rev-parse --short HEAD)"
VERSION="$(cat package.json | jq -r '.version')"
NEXT_VERSION="$(npx semver $VERSION -i patch)-alpha-$SHORT_SHA"
echo "VERSION=$NEXT_VERSION" >> $GITHUB_ENV
git config --global user.email "[email protected]"
git config --global user.name "Release bot"
npm version "$NEXT_VERSION"
- name: "Build the dist package"
run: npm run-script build
# - name: "Verify es support of dist package"
# run: npm run-script check-es
- name: "Publish the package"
run: npm publish --access public --tag alpha
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}