Skip to content

Automatically Updated GeoJSON File #3

Automatically Updated GeoJSON File

Automatically Updated GeoJSON File #3

Workflow file for this run

# Creates a release from a tagged commit
name: Create Release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set RELEASE_VERSION
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Test RELEASE_VERSION
run: |
echo $RELEASE_VERSION
echo ${{ env.RELEASE_VERSION }}
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "17.x"
registry-url: "https://npm.pkg.github.com"
- run: npm ci
- run: npm run test
- run: npm publish --access public --registry=https://npm.pkg.github.com --scope=@chadhutchins182
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
draft: false
prerelease: false