Add timezone db support #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release published | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# "ref" specifies the branch to check out. | |
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted | |
ref: ${{ github.event.release.target_commitish }} | |
- name: Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: git config --global user.name "GitHub CD bot" | |
- run: git config --global user.email "[email protected]" | |
- run: npm ci --no-optional | |
# Version the module using the release tag name | |
- run: npm version ${{ github.event.release.tag_name }} | |
# Set up .npmrc file so the artifact can be published | |
- run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc | |
# Lint, test, build and publish changes | |
- run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# Push version changes back to github | |
- run: git push | |
env: | |
# The secret is passed automatically. Nothing to configure. | |
github-token: ${{ secrets.GITHUB_TOKEN }} |